-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Deprecation: config: remove support for old ~/.dockercfg #2504
Deprecation: config: remove support for old ~/.dockercfg #2504
Conversation
We need to check Kubernetes; I found some code using |
de3fd82
to
b7206d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and safe to me, it removes lots of crappy logic 👍
Was discussing this in the maintainers meeting, and (similar to the kubernetes code I linked to), there might actually be other systems that use this format to store credentials. For that reason, we should officially deprecate it (and be sure to call it out in the release notes), and not immediately remove it (at least not for the next 20.0x release) |
c80b780
to
0af0d51
Compare
Codecov Report
@@ Coverage Diff @@
## master #2504 +/- ##
==========================================
+ Coverage 57.06% 57.13% +0.07%
==========================================
Files 299 299
Lines 18683 18665 -18
==========================================
+ Hits 10662 10665 +3
+ Misses 7155 7133 -22
- Partials 866 867 +1 |
0af0d51
to
4517757
Compare
SGTM. 👍 |
4517757
to
ad273a9
Compare
Codecov Report
@@ Coverage Diff @@
## master #2504 +/- ##
==========================================
+ Coverage 59.00% 59.06% +0.06%
==========================================
Files 284 284
Lines 23839 23799 -40
==========================================
- Hits 14066 14057 -9
+ Misses 8914 8883 -31
Partials 859 859 |
Ah, yes, forgot about this one; rebased, and let me move out of draft |
This seems to come from an error reported by containerd when processing cgroups. |
Hmm.. yes, definitely not related; let me restart CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
The `~/.dockercfg` file was replaced by `~/.docker/config.json` in 2015 (github.com/docker/docker/commit/18c9b6c6455f116ae59cde8544413b3d7d294a5e), but the CLI still falls back to checking if this file exists if no current (`~/.docker/config.json`) file was found. Given that no version of the CLI since Docker v1.7.0 has created this file, and if such a file exists, it means someone hasn't re-authenticated for 5 years, it's probably safe to remove this fallback. Signed-off-by: Sebastiaan van Stijn <[email protected]>
ad273a9
to
ee218fa
Compare
rebased; still green; let's bring this one in |
depends on:
The
~/.dockercfg
file was replaced by~/.docker/config.json
in 2015(moby/moby@18c9b6c (moby/moby#12009)), but the CLI still falls back to checking if this file exists if no current (
~/.docker/config.json
) file was found.Given that no version of the CLI since Docker v1.7.0 has created this file, and if such a file exists, it means someone hasn't re authenticated for 5 years, it's probably safe to remove this fallback.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)