stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

Docker issue on windows

Open pathetic opened this issue 3 years ago • 3 comments

When trying to run the command docker compose up --build I am getting the following error:

Error response from daemon: Unknown runtime specified nvidia

I tried on linux and I have the same problem but I need to use this on windows.

Also where should ~/sd-data be located?

pathetic avatar Sep 09 '22 22:09 pathetic

I am also experiencing this issue may have to do with needing to install the Nvidia Container Kit?

d-sanderson avatar Sep 10 '22 18:09 d-sanderson

The problem may have been fixed in Pull Request #160. Please try the latest revision.

I had the same problem in my environment, but with the #160's change, the problem no longer occurs.

todashuta avatar Sep 12 '22 14:09 todashuta

I was able to fix it by adding this to daemon json. If you are using Docker Desktop - Settings > Docker Engine to access the config

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "features": {
    "buildkit": true
  },
  "runtimes": {
    "nvidia": {
      "path": "/usr/bin/nvidia-container-runtime",
      "runtimeArgs": []
    }
  }
}

d-sanderson avatar Sep 12 '22 14:09 d-sanderson