카테고리 없음

ubuntu 에서 docker 사용해보기

Eprld 2024. 10. 13. 13:10

ubuntu에서 도커 설치

우분투 버전 확인 : lsb_realease -a

업데이트 :  sudo apt-get update

curl 설치하기 : sudo apt install curl

필요한 패키지 다운 : sudo apt-get install apt-transport-https ca-certificates curl gnopg-agent software-properties-common

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

 

apt 저장소 추가 : sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubutu $(lsb_release -cs) stable" 

 

다시 업데이트 하기

 

도커 관련 주요 패키지 설치 명령어 : sudo apt-get install docker-ce docker-ce-cli containerd.io 

 

도커 설치 완료

도커 이미지 다운로드 하고 확인하기