On apple M1, docker-compose does not honor the platform:
tag for amd64 if only the arm64 version of the same image is present
#9740
Labels
Description
If an
arm64
version of an image is present but not theamd64
version, theplatform
tag when set toamd64
in docker-compose is not honored. If both or neither are present, thenplatform
is honored.Steps to reproduce the issue:
linux/amd64
architecture platform specified.Ensure the image does not exist in docker. Then pull the image for the
arm64
architecture (but not theamd64
image):Run the test service with
uname
and observe the wrong architecture:This only appears to happen if the
arm64
image is already there and theamd64
image is not. If there is no image, docker-compose will pull the correctamd64
image.Describe the results you received:
docker-compose runs the arm64 image
Describe the results you expected:
docker-compose runs the amd64 image.
Output of
docker compose version
:Output of
docker info
:Additional environment details:
The text was updated successfully, but these errors were encountered: