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

cli/config: remove warning for deprecated ~/.dockercfg file #4281

Merged
merged 2 commits into from
May 16, 2023

Conversation

thaJeztah
Copy link
Member

cli/config: Load: remove outdated FIXME

This FIXME was added in 2013 in moby/moby@c72ff31
and it's both unclear which "internal golang config parser" is referred to here. Given that 10 Years have passed, this will unlikely happen, and doesn't warrant a FIXME here.

cli/config: remove warning for deprecated ~/.dockercfg file

The ~/.dockercfg file was replaced by ~/.docker/config.json in 2015
(github.com/docker/docker/commit/18c9b6c6455f116ae59cde8544413b3d7d294a5e).

Commit b83bc67 (#2666) (v23.0.0, but backported to v20.10) added a warning if no "current" config file was found but a legacy file was, and if the CLI would fall back to using the deprecated file.

Commit ee218fa (#2504) removed support for the legacy file, but kept a warning in place if a legacy file was in place, and now ignored.

This patch removes the warning as well, fully deprecating the legacy
~/.dockercfg file.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

This FIXME was added in 2013 in moby/moby@c72ff31
and it's both unclear which "internal golang config parser" is referred to
here. Given that 10 Years have passed, this will unlikely happen, and doesn't
warrant a FIXME here.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The `~/.dockercfg` file was replaced by `~/.docker/config.json` in 2015
(github.com/docker/docker/commit/18c9b6c6455f116ae59cde8544413b3d7d294a5e).

Commit b83bc67 (v23.0.0, but backported to
v20.10) added a warning if no "current" config file was found but a legacy
file was, and if the CLI would fall back to using the deprecated file.

Commit ee218fa removed support for the
legacy file, but kept a warning in place if a legacy file was in place,
and now ignored.

This patch removes the warning as well, fully deprecating the legacy
`~/.dockercfg` file.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

@rumpl @laurazard ptal

@thaJeztah thaJeztah merged commit 97795bb into docker:master May 16, 2023
@thaJeztah thaJeztah deleted the remove_deprecated_config_warning branch May 16, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants