Improve 'no matching manifest' error message#38574
Conversation
|
Looks like you need to |
9614103 to
363f1f6
Compare
|
Oh I'll have to check the windows code. |
Codecov Report
@@ Coverage Diff @@
## master #38574 +/- ##
=========================================
Coverage ? 37.02%
=========================================
Files ? 610
Lines ? 45789
Branches ? 0
=========================================
Hits ? 16952
Misses ? 26507
Partials ? 2330 |
|
Wow, I thought if checking for "10.0." is a good idea for the Windows unit test, but I thought what could go wrong, "every" Windows has this version number for years. Now I've added printing out the actual result: 'windows/amd64 6.2.9200' 😂 |
|
Might want to squash the commits before merging 🤗 |
|
@thaJeztah I will do that definitely, now that all tests work 😅 |
Signed-off-by: Stefan Scherer <[email protected]>
cfb42ad to
4b9db20
Compare
This is because the test isn't manifested. See |
Signed-off-by: Stefan Scherer <[email protected]>
fixes #38199
- What I did
I improved the error message when someone tries to pull an image, but the manifest list only has manifests that doesn't match the current platform. At the moment only
appears. The current platform is shown as "unknown" which is not helpful to see if someone is running Docker Desktop on Windows 10 with Linux containers or if the Windows OS version does not match.
Even on a Linux system we can reproduce the problem when we try to pull the newest nanoserver image which is a manifest list:
- How I did it
For Windows the error message now shows windows/amd64 and the OS version number instead of "unknown".
For other platforms the error message now shows OS with the current CPU architecture instead of "unknown".
- How to verify it
There are unit tests.
A new Docker engine on Windows now shows a much more detailed error message
- Description for the changelog
Show the current platform and architecture when pulling from a manifest list doesn't find any match.
- A picture of a cute animal (not mandatory but encouraged)