Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error response from daemon: could not select device driver "nvidia" with capabilities: [[compute utility]] #743

Open
2 tasks done
Nerossoul opened this issue Oct 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Nerossoul
Copy link

Has this issue been opened before?

  • It is not in the FAQ, I checked.
  • It is not in the issues, I searched.

Describe the bug

Container bulded but exit with error

~/stable-diffusion-webui-docker-master$ docker compose --profile auto up --build
[+] Building 1.5s (25/25) FINISHED                                                                                                                                                                                             docker:default
 => [auto internal] load .dockerignore                                                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                                                          0.0s
 => [auto internal] load build definition from Dockerfile                                                                                                                                                                                0.0s
 => => transferring dockerfile: 2.96kB                                                                                                                                                                                                   0.0s
 => [auto internal] load metadata for docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime                                                                                                                                            1.2s
 => [auto internal] load metadata for docker.io/alpine/git:2.36.2                                                                                                                                                                        1.2s
 => [auto download 1/9] FROM docker.io/alpine/git:2.36.2@sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e1c75dea84                                                                                                         0.0s
 => [auto internal] load build context                                                                                                                                                                                                   0.0s
 => => transferring context: 5.53kB                                                                                                                                                                                                      0.0s
 => [auto stage-1  1/11] FROM docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778dbf80b8c99c361                                                                            0.0s
 => CACHED [auto stage-1  2/11] RUN --mount=type=cache,target=/var/cache/apt   apt-get update &&   apt-get install -y fonts-dejavu-core rsync git jq moreutils aria2   ffmpeg libglfw3-dev libgles2-mesa-dev pkg-config libcairo2 libca  0.0s
 => CACHED [auto stage-1  3/11] RUN --mount=type=cache,target=/root/.cache/pip   git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git &&   cd stable-diffusion-webui &&   git reset --hard v1.9.4 &&   pip install -r   0.0s
 => CACHED [auto download 2/9] COPY clone.sh /clone.sh                                                                                                                                                                                   0.0s
 => CACHED [auto download 3/9] RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git 6f7db241d2f8ba7457bac5ca9753331f0c266917                                                 0.0s
 => CACHED [auto download 4/9] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif   0.0s
 => CACHED [auto download 5/9] RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9                                                                                                      0.0s
 => CACHED [auto download 6/9] RUN . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusion.git ab527a9a6d347f364e3d185ba6d714e22d80cb3c                                                                                         0.0s
 => CACHED [auto download 7/9] RUN . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interrogator 2cf03aaf6e704197fd0dae7c7f96aa59cf1b11c9                                                                           0.0s
 => CACHED [auto download 8/9] RUN . /clone.sh generative-models https://github.com/Stability-AI/generative-models 45c443b316737a4ab6e40413d7794a7f5657c19f                                                                              0.0s
 => CACHED [auto download 9/9] RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets 6f7db241d2f8ba7457bac5ca9753331f0c266917                                                     0.0s
 => CACHED [auto stage-1  4/11] COPY --from=download /repositories/ /stable-diffusion-webui/repositories/                                                                                                                                0.0s
 => CACHED [auto stage-1  5/11] RUN mkdir /stable-diffusion-webui/interrogate && cp /stable-diffusion-webui/repositories/clip-interrogator/clip_interrogator/data/* /stable-diffusion-webui/interrogate                                  0.0s
 => CACHED [auto stage-1  6/11] RUN --mount=type=cache,target=/root/.cache/pip   pip install pyngrok xformers==0.0.26.post1   git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379   git+https://githu  0.0s
 => CACHED [auto stage-1  7/11] RUN apt-get -y install libgoogle-perftools-dev && apt-get clean                                                                                                                                          0.0s
 => [auto stage-1  8/11] COPY . /docker                                                                                                                                                                                                  0.0s
 => [auto stage-1  9/11] RUN   sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py &&   git config --global --add safe.directory '*'                                                 0.2s
 => [auto stage-1 10/11] WORKDIR /stable-diffusion-webui                                                                                                                                                                                 0.0s
 => [auto] exporting to image                                                                                                                                                                                                            0.0s
 => => exporting layers                                                                                                                                                                                                                  0.0s
 => => writing image sha256:1daa03f07d852b5ed14f6e131023cd84f1c6e213ed199a6f2d517848a29390ed                                                                                                                                             0.0s
 => => naming to docker.io/library/sd-auto:78                                                                                                                                                                                            0.0s
[+] Running 1/1
 ✔ Container webui-docker-auto-1  Recreated                                                                                                                                                                                              0.0s 
Attaching to webui-docker-auto-1
Error response from daemon: could not select device driver "nvidia" with capabilities: [[compute utility]]

Hardware / Software

  • OS: Ubuntu 22.04
  • OS version: Linux Mint 21.2
  • WSL version (if applicable):
  • Docker Version: 24.0.6, build ed223bc
  • Docker compose version: 1.29.2, build 5becea4c
  • Repo version: master 802d0bc
  • RAM: 64GB
  • GPU/VRAM: Geforce RTX 3070ti 8GB

Steps to Reproduce

  1. docker compose --profile auto up --build
@Nerossoul Nerossoul added the bug Something isn't working label Oct 18, 2024
@DevilaN
Copy link
Contributor

DevilaN commented Nov 6, 2024

Do you have nvidia-container-toolkit installed properly so Docker allows to use you GPU?

Simplest test is to run benchmark described here: https://docs.docker.com/desktop/gpu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants