[Django]-WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)

4👍

Try changing the command as

docker run --rm --gpus all --platform linux/amd64 -v static_volume:/home/app/staticfiles/ -v media_volume:/app/uploaded_videos/ --name=deepfakeapplication abhijitjadhav1998/deefake-detection-20framemodel

Please ensure that you have compatible Nvidia Drivers available as this application uses Nvidia CUDA.

53👍

Put this line --platform linux/amd64 after docker run. It works for me, using Macbook M1.

2👍

sudo docker run --cap-add SYS_PTRACE -e 'ACCEPT_EULA=1' -e 'MSSQL_SA_PASSWORD=bigStrongPwd' -p 1433:1433 --name sqledge -d mcr.microsoft.com/azure-sql-edge

Description :
Be sure to change bigStrongPwd to a strong password of your choice. You can also change the value of the –name parameter if you wish.
By default, the container is run with the Developer Edition. You can run the Premium Edition by adding -e ‘MSSQL_PID=Premium’.

Src: Database.guide

👤David

2👍

When you build the docker image, add the --platform linux/amd64 flag and it will create an amd64 image instead of an arm64 image.

1👍

I think this is correct:

docker run -v /Users/brandomiranda/iit-term-synthesis:/home/bot/iit-term-synthesis \
           -v /Users/brandomiranda/pycoq:/home/bot/pycoq \
           -v /Users/brandomiranda/ultimate-utils:/home/bot/ultimate-utils \
           -v /Users/brandomiranda/proverbot9001:/home/bot/proverbot9001 \
           -v /Users/brandomiranda/data:/home/bot/data \
           --platform linux/amd64 \
           -ti brandojazz/iit-term-synthesis:test bash

since the warning I was getting went away.

Note, this gives a warning:

docker run -v /Users/brandomiranda/iit-term-synthesis:/home/bot/iit-term-synthesis \
           -v /Users/brandomiranda/pycoq:/home/bot/pycoq \
           -v /Users/brandomiranda/ultimate-utils:/home/bot/ultimate-utils \
           -v /Users/brandomiranda/proverbot9001:/home/bot/proverbot9001 \
           -v /Users/brandomiranda/data:/home/bot/data \
           -ti brandojazz/iit-term-synthesis:test bash
           --platform linux/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

-1👍

WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)

enter image description here

Leave a comment