본문 바로가기

hacking or software engineering skills/linux

[linux] nvidia-docker 설치

728x90

1. docker를 설치한 후

2. nvidia docker를 설치한다.

 

docker 설치는 간단하다.

curl https://get.docker.com | sh \
  && sudo systemctl --now enable docker

 

 

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-docker2

 

sudo systemctl restart docker

설치 끝!

다음에는 NGC(Nvidia Gpu Cloud)를 이용하는 방법을 작성해볼까 한다.

www.nvidia.com/ko-kr/gpu-cloud/containers/

docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker

 

Installation Guide — NVIDIA Cloud Native Technologies documentation

On RHEL 7, install the nvidia-container-toolkit package (and dependencies) after updating the package listing: Restart the Docker daemon to complete the installation after setting the default runtime: Note Depending on how your RHEL 7 system is configured

docs.nvidia.com