[Docker] Error response from daemon: exec: "nvidia-container-runtime-hook": executable file not found in $PATH. ERRO[0000] error waiting for container 해결법

환길·2024년 4월 30일

Error

목록 보기
12/13
post-thumbnail

오류


hgjeong:~/workdir$ docker run -it -p 9999:9999 --gpus all --name=hg_env_v2 hg_image:v2
docker: Error response from daemon: exec: "nvidia-container-runtime-hook": executable file not found in $PATH.
ERRO[0000] error waiting for container:          

최근에 container에서 gpu를 사용하기 위해 --gpus all 옵션을 사용했는데 이게 오류가 발생했다. 그 이유는 최근에 CUDA 업데이트를 하면서 충돌이 발생했기 때문이다.

해결방법


해결방법은 간단하다. 터미널에 다음 명령어를 입력하고 설치가 된 이후에 다시 docker run을 실행하면 된다.

apt-get install nvidia-container-runtime

0개의 댓글