-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
[20.10 beta] regression / change in behavior when running different architecture images #41552
Comments
I'll take a look at this today. I don't remember why it was needed to set the platform (when not set) in the API layer. |
Manifest is missing arch; {
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 1507,
"digest": "sha256:7e4bece93b3e57b41f44ed293874207984d801979836c7aa4f8e9ef079f5283c"
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 2406763,
"digest": "sha256:52278dd8e57993669c5b72a9620e89bebdc098f2af2379caaa8945f7403f77a2"
}
]
} |
That {
"architecture": "arm",
...
"os": "linux",
...
} |
Desktop CI was failing last night with the workaround adding
Could we maybe have |
@StefanScherer This is fixed by #41556, just needs one more review. |
@thaJeztah @cpuguy83 A very similar but not identical issue has been reported by a user at docker/for-win#9166. Does the patch fix this case too? |
The only detail in docker/for-win#9166 is that it's a mixture of Windows and Linux containers. I assume the user was using LCOW? |
That is correct. Please ask for any additional information I can provide. Although I went back to v19.03.13 because I need to continue working ;) |
Thanks @cronventis to confirm this. I suggest to make your use-case visible (eg. the thumbs up at the beginning) in this ticket docker/roadmap#79 as well. Thanks. |
Using Docker 20.10 commands we used before now break like this: ``` image with reference sha256:6deb7d92f59f205ddaf95230bec403fd117ab8f509074f09a3fc6b108276d744 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64 ``` This switches to always use BUILDKIT=1 when pushing images, as Docker changed behavior in 20.10 and it is more complex to figure out if we are 20.10 or not, and would be annoying to figure out what later versions would do. See moby/moby#41552
Using Docker 20.10 commands we used before now break like this: ``` image with reference sha256:6deb7d92f59f205ddaf95230bec403fd117ab8f509074f09a3fc6b108276d744 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64 ``` This switches to always use BUILDKIT=1 when pushing images, as Docker changed behavior in 20.10 and it is more complex to figure out if we are 20.10 or not, and would be annoying to figure out what later versions would do. See moby/moby#41552
See #40725 (comment)
This came up in CI for Docker Desktop;
looks like #40725 introduced a regression / change in behavior; it will now at all times print an error, even if the platform supports the other architecture (through quemu);
The above previously worked, but now requires the
--platform
flag to be set (even though the image is not multi-arch)/cc @cpuguy83 @tonistiigi
The text was updated successfully, but these errors were encountered: