Skip to content

automatically detect client host endpoint#67

Open
Lohann wants to merge 7 commits into
vv9k:masterfrom
Lohann:feature/detect-docker-host-endpoint
Open

automatically detect client host endpoint#67
Lohann wants to merge 7 commits into
vv9k:masterfrom
Lohann:feature/detect-docker-host-endpoint

Conversation

@Lohann
Copy link
Copy Markdown

@Lohann Lohann commented Aug 27, 2023

What did you implement:

Automatically detect the client host endpoint, the same way as docker-cli does.

I've implemented this feature in a project I'm working, so I decided to open a PR here in case you think this could be useful.

Steps

  1. Try to load the endpoint from the DOCKER_CONTEXT environment variable
  2. Try to load the endpoint from the DOCKER_HOST environment variable
  3. Try to load the endpoint from the config.json file
  4. otherwise use the default endpoint

@Lohann
Copy link
Copy Markdown
Author

Lohann commented Sep 4, 2023

@vv9k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant