-
docker: Error response from daemon: could not select device driver with capabilities: [[gpu]]Error 관련 2024. 3. 20. 11:24
정확한 원인은 모르겠으나(nvidia-smi, nvcc -V 모두 문제 없이 출력),
실행 중인 docker container가 모두 죽어서 다음 명령어로 container를 시작했을 때,
docker start {container 명}다음의 에러가 발생했다.
Error response from daemon: could not select device driver "" with capabilities: [[gpu]] Error: failed to start containers: testing원인은 모르겠으나 다음의 nvidia-container-toolkit을 설치하면, 해결이 가능하다. 다음의 코드로 nvidia-container-toolkit을 설치하자.
$ 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설치가 정상적으로 되었으면 docker 시스템을 재 기동한다.
$ sudo systemctl restart docker간단하게 error를 해결할 수 있다.
'Error 관련' 카테고리의 다른 글
[yongggg's] sglang.Engine error (0) 2024.12.04 [yongggg's] huggingface-cli download error (0) 2024.12.03 axolotl : resume_from_checkpoint 시, save checkpoint 및 resume train error (1) 2024.08.30 [Docker] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (0) 2024.03.06 [Python] pip install 'SSLCertVerificationError' 해결 방법 (6) 2024.01.25