fcccfeb811
With containerd snapshotters enabled `docker run` currently fails when creating a container from an image that doesn't have the default host platform without an explicit `--platform` selection: ``` $ docker run image:amd64 Unable to find image 'asdf:amd64' locally docker: Error response from daemon: pull access denied for asdf, repository does not exist or may require 'docker login'. See 'docker run --help'. ``` This is confusing and the graphdriver behavior is much better here, because it runs whatever platform the image has, but prints a warning: ``` $ docker run image:amd64 WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested ``` This commits changes the containerd snapshotter behavior to be the same as the graphdriver. This doesn't affect container creation when platform is specified explicitly. ``` $ docker run --rm --platform linux/arm64 asdf:amd64 Unable to find image 'asdf:amd64' locally docker: Error response from daemon: pull access denied for asdf, repository does not exist or may require 'docker login'. See 'docker run --help'. ``` Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com> (cherry picked from commit e438db19d56bef55f9676af9db46cc04caa6330b) Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com> |
||
---|---|---|
.. | ||
cache.go | ||
handlers.go | ||
image.go | ||
image_builder.go | ||
image_changes.go | ||
image_children.go | ||
image_commit.go | ||
image_delete.go | ||
image_delete_test.go | ||
image_events.go | ||
image_exporter.go | ||
image_history.go | ||
image_import.go | ||
image_import_test.go | ||
image_list.go | ||
image_manifest.go | ||
image_prune.go | ||
image_pull.go | ||
image_push.go | ||
image_snapshot.go | ||
image_snapshot_unix.go | ||
image_snapshot_windows.go | ||
image_squash.go | ||
image_tag.go | ||
image_test.go | ||
imagespec.go | ||
mount.go | ||
platform_matchers.go | ||
progress.go | ||
resolver.go | ||
service.go | ||
service_unix.go | ||
service_windows.go | ||
soft_delete.go | ||
store.go |