AbdBarho / stable-diffusion-webui-docker

Easy Docker setup for Stable Diffusion with user-friendly UI
Other
6.69k stars 1.12k forks source link

Auto-detected mode as 'legacy' nvidia-container-cli: initialization error: WSL environment detected but no adapters were found #117

Closed geoff-maddock closed 2 years ago

geoff-maddock commented 2 years ago

I'm using Windows with WSL1

Running the command:

docker compose --profile hlky up --build

I'm getting an error:

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 1/1
 ⠿ Container webui-docker-hlky-1  Created                                                                                            1.3s
Attaching to webui-docker-hlky-1

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: WSL environment detected but no adapters were found: unknown

Kind of seems like a generic error, not related to this repo - but has anyone run into this and have suggestions?

AbdBarho commented 2 years ago

WSL2 has GPU support, WSL1 doesn't.

geoff-maddock commented 2 years ago

Thanks - I think I should be able to switch to WSL2 at minimum to try this out.