본문 바로가기
개발일지

Ubuntu 18.04에 Docker 설치하기 / 리눅스 18.04에 Docker CE 설치하기

by 코드의신 2023. 4. 9.
반응형

Docker 설치 과정

1. 패키지 설치

#Docker 설치에 필요한 패키지 설치

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

2. 키 추가

#Docker 공식 GPG 키 추가
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

3. 저장소 추가

stable 버전의 Docker 패키지 저장소 추가
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce

 

반응형

댓글