Skip to content

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

Merged
thaJeztah merged 2 commits into
docker:masterfrom
thaJeztah:remove_deprecated_config_warning
May 16, 2023
Merged

cli/config: remove warning for deprecated ~/.dockercfg file#4281
thaJeztah merged 2 commits into
docker:masterfrom
thaJeztah:remove_deprecated_config_warning

Conversation

@thaJeztah

Copy link
Copy Markdown
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
Copy Markdown
MemberAuthor

@rumpl@laurazard ptal

@thaJeztah
thaJeztah merged commit 97795bb into docker:masterMay 16, 2023
@thaJeztah
thaJeztah deleted the remove_deprecated_config_warning branch May 16, 2023 17:12
Sign up for freeto 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

@thaJeztah@vvoland