basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 469 forks source link

Docker issue on windows #148

Open pathetic opened 2 years ago

pathetic commented 2 years ago

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?

d-sanderson commented 1 year ago

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

todashuta commented 1 year ago

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.

d-sanderson commented 1 year ago

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": []
    }
  }
}