-
EC2 - Ubuntu Docker 설치하기 [4]AWS 2021. 1. 26. 23:53728x90반응형
1. apt 업데이트, 패키지 설치
sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
2. GPG key 등록
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 설치하기apt-get update apt-get install docker-ce docker-ce-cli containerd.io
5. ubuntu image 받기
docker pull ubuntu
6. image 실행
docker run -it ubuntu
728x90반응형'AWS' 카테고리의 다른 글
EC2 - Docker MariaDB 설치하기 [5] (0) 2021.01.31 EC2 - NGINX echo 모듈 빌드하기 [3] (0) 2021.01.25 EC2 - NGINX 빌드하기 [2] (0) 2021.01.24 EC2 - Ubuntu 서버 만들기 [1] (0) 2021.01.24