skip to Main Content

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?

5

Answers


  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.

    Login or Signup to reply.
  2. Put this line --platform linux/amd64 after docker run. It works for me, using Macbook M1.

    Login or Signup to reply.
  3. 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

    Login or Signup to reply.
  4. 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
    
    Login or Signup to reply.
  5. When you build the docker image, add the --platform linux/amd64 flag and it will create an amd64 image instead of an arm64 image.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search