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

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

I am facing this error on mac while trying to run this command docker run --rm --gpus all -v static_volume:/home/app/staticfiles/ -v media_volume:/app/uploaded_videos/ --name=deepfakeapplication abhijitjadhav1998/deefake-detection-20framemodel How to solve this error?



Solution 1:[1]

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.

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abhijit Jadhav
Solution 2 Owais Ali