JordanKnott / taskcafe

An open source project management tool with Kanban boards
MIT License
4.35k stars 377 forks source link

! 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 3 weeks ago

thomastthai commented 3 weeks ago

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 commented 1 week ago

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