[Docker] docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. 오류

2023. 5. 4. 20:03·Docker

Docker를 오랜만에 실행했는데, gpu 할당에서 오류가 나게 되었습니다.

docker run -it -p 8082:22 --gpus device=1 --name bootcamp nvidia/cuda:11.8.0-devel-ubuntu22.04

 

오류내용:

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container:

 

이같은 경우의 오류는 nvidia-container-toolkit 관련 오류입니다. (아무래도 서버를 초기화 했는데, 그 과정에서 설치가 안된것 같습니다.) nvidia-container-toolkit을 설치하고 docker service를 재실행합니다.

 

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
   && curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \
   && curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker

 


출처:

https://bluecolorsky.tistory.com/110

 

[정보] docker: Error response from daemon: could not select device driver with capabilities: [[gpu]] 문제 해결하기

도커를 사용하다 보면 다양한 문제에 맞닥뜨리게 된다. 해결하기 쉬운 문제부터 어려운 문제까지 수많은 문제들이 존재하는데 사용할때마다 항상 다른 오류가 발생하여 문제가 발생할때마다

bluecolorsky.tistory.com

 

저작자표시 (새창열림)

'Docker' 카테고리의 다른 글

[Docker] Docker 컨테이너를 활용한 딥 러닝 개발 환경 만들기  (0) 2023.02.02
[Docker] 명령어 모음  (0) 2023.01.29
[Docker] Docker 설치하기  (0) 2023.01.27
'Docker' 카테고리의 다른 글
  • [Docker] Docker 컨테이너를 활용한 딥 러닝 개발 환경 만들기
  • [Docker] 명령어 모음
  • [Docker] Docker 설치하기
동만스텝
동만스텝
  • 동만스텝
    우물 안 개구리
    동만스텝
  • 전체
    오늘
    어제
    • 분류 전체보기 (19)
      • Linux (7)
      • Docker (4)
      • Computer Vision (2)
      • Generative Models (6)
      • Deep Learning (1)
  • 블로그 메뉴

    • 링크

      • Github
    • 공지사항

    • 인기 글

    • 태그

      Variational Auto Encoder
      Classifier Guidance
      Error
      style transfer
      Score-based Generative Models
      vae
      논문 리뷰
      Security
      Diffusion Models
      ubuntu
      transformer
      Docker
      Generative Models
      Classifier-Free Guidance
      DCN
      Deformable Convolutional Networks
      paper review
      perceptual loss
      InternImage
      Variatioinal AutoEncoder
    • 최근 댓글

    • 최근 글

    • hELLO· Designed By정상우.v4.10.1
    동만스텝
    [Docker] docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. 오류
    상단으로

    티스토리툴바