Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker client initialization #1704

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zerodivisi0n
Copy link

Fixes #1703

As per documentation for docker client it is recommended to initialize it from env with client.FromEnv:

You use the library by constructing a client object using NewClientWithOpts and calling methods on it. The client can be configured from environment variables by passing the FromEnv option, or configured manually by passing any of the other available [Opts].

Another way is to initialize it manually with other Opt-s, which is more compex and I think is not required here.

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

Successfully merging this pull request may close these issues.

Could not get docker system info
1 participant