Skip to content

Fix docker client initialization #1704

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

Merged
merged 1 commit into from
Jun 21, 2025
Merged

Conversation

zerodivisi0n
Copy link
Contributor

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.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@FelicianoTech FelicianoTech added this to the v0.44.0 milestone Jun 21, 2025
@FelicianoTech
Copy link
Collaborator

Hey @zerodivisi0n,

Thank you for the contribution. I'll get this merged. This change should appear in the upcoming v0.44.0 release.

@FelicianoTech FelicianoTech merged commit 7175b06 into wtfutil:master Jun 21, 2025
4 of 5 checks passed
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
2 participants