Skip to content
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

! web The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s #191

Open
thomastthai opened this issue Nov 8, 2024 · 1 comment

Comments

@thomastthai
Copy link

thomastthai commented Nov 8, 2024

Describe the bug
A clear and concise description of what the bug is with steps to reproduce the issue.

! web The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s

Expected behavior
What did you expect to happen?

No error.

Additional context

 ❯ docker-compose -p taskcafe up -d
[+] Running 12/12
 ✔ web Pulled                                                                                                                                         11.6s
   ✔ e50dd134581f Download complete                                                                                                                    8.6s
   ✔ a0d0a0d46f8b Download complete                                                                                                                    0.8s
 ✔ postgres Pulled                                                                                                                                    20.3s
   ✔ c836a42485c3 Download complete                                                                                                                    1.0s
   ✔ b538f80385f9 Download complete                                                                                                                    1.7s
   ✔ f9d4833cc285 Download complete                                                                                                                    1.3s
   ✔ 6bf1f783f6dc Download complete                                                                                                                    1.3s
   ✔ 7b0c16fa21d4 Download complete                                                                                                                    1.5s
   ✔ 238f2905067d Download complete                                                                                                                   16.7s
   ✔ 77b9ec840430 Download complete                                                                                                                    1.3s
   ✔ 73edf12b31e6 Download complete                                                                                                                    1.3s
[+] Running 5/5
 ✔ Network taskcafe_taskcafe-test                                                                                                                     Created0.0s ume "taskcafe_taskcafe-postgres"  Created                                                                                                        0.0s
 ✔ Volume "taskcafe_taskcafe-postgres"                                                                                                                Created0.0s tainer taskcafe-postgres-1        Created                                                                                                        0.1s
[+] Running 5/6cafe_taskcafe-uploads"                                                                                                                 Create ✔ Network taskcafe_taskcafe-test                                                                                                                     Created0.0s tainer taskcafe-postgres-1                                                                                                                      Starti ✔ Volume "taskcafe_taskcafe-postgres"                                                                                                                Created0.0s tainer taskcafe-web-1                                                                                                                           Create[+] Running 6/6cafe_taskcafe-uploads"                                                                                                                 Create ✔ Network taskcafe_taskcafe-test                                                                                                                     Created0.0s tainer taskcafe-postgres-1                                                                                                                      Starte ✔ Volume "taskcafe_taskcafe-postgres"                                                                                                                Created0.0s tainer taskcafe-web-1                                                                                                                           Starti ✔ Volume "taskcafe_taskcafe-uploads"                                                                                                                 Created0.0s  The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested  0.0s
 ✔ Container taskcafe-postgres-1                                                                                                                      Started0.3s
 ✔ Container taskcafe-web-1                                                                                                                           Started0.3s
 ! web The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested  0.0s

taskcafe master*​​ 20s
@aklen
Copy link

aklen commented Nov 16, 2024

Workaround

If you encounter platform compatibility issues (e.g., linux/amd64 vs. linux/arm64), here's how to resolve them:

Specify Platform in docker-compose.yml:
Add the platform field to the web service:

   services:
     web:
       platform: linux/amd64
       ...

Then rerun the command:

docker compose -p taskcafe up -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants