본문 바로가기

Docker 설치 (이전 완료)

ubuntu 20.04 기준 docker 설치

 

1. http 패키지 및 기타 필요 패키지 설치

sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

2. gpg키 및 저장소 추가

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

3. repository 등록

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

4. docker, containerd 설치

sudo apt update && sudo apt install docker-ce docker-ce-cli containerd.io

5. docker 자동 실행 설정

sudo systemctl enable docker && service docker start

6. sudo 없이 사용하도록 유저 그룹 추가

sudo usermod -aG docker $USER

 

Nvidia-Docker 설치

해당 링크에 자신에게 맞는 OS 버전에 맞춰 설치를 진행하면 된다. 

 

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