Development/Docker
[Docker] docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
jstar0525
2022. 5. 23. 10:45
반응형
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container: context canceled
문제 상황
Docker를 실행함에 있어 아래와 같은 오류가 발생하였다.
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container: context canceled
nvidia-smi를 실행시켜 보았지만,
gpus는 정상적으로 잡혀 구글링을 통하여 해결하였다.
해결방안
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 service restart
$ sudo systemctl restart docker
Ref.
https://bluecolorsky.tistory.com/110
반응형