-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
DOCKER_DEFAULT_PLATFORM not working for docker compose #9889
Comments
Hiya @userlerueda, thanks for the report. I believe this was addressed in #9854, could you try this again with the latest release ( |
We tried, but how do we replace the |
$ docker-compose -v $ DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose up --build |
@userlerueda @jaileon can you provide a compose file to reproduce the issue please? What happens if you use the one defined in this issue? |
Hi @glours, @jaileon will send the one we are using. Looking at the one in #9853 I see they are setting the platform. Our intention is exactly not to set the platform in the docker-compose.yml file but leave it default, and set the |
Hi @glours, following the compose file content:
The command executed:
Using
|
Hi @glours, I have the same problem. Is this issue planned to be fixed 😀 ? Client: Server: Docker Desktop 4.13.1 (90346) |
Well, for anyone who is stuck here, try this to see if it's the right architecture.
If it's not, then
|
Description
DOKCER_DEFAULT_PLATFORM
is being ignored by the docker compose command.Steps to reproduce the issue:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker compose up --build
Describe the results you received:
Describe the results you expected:
The image should be pulled like it is done, for instance with a
docker pull mysql:5.7
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker compose version
:I installed docker-compose v2.11.2 also, but it only replaces the version for
docker-compose -v
Output of
docker info
:Additional environment details:
The text was updated successfully, but these errors were encountered: