Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker 설치 방법 #1

Open
xown3197 opened this issue Nov 4, 2021 · 0 comments
Open

Docker 설치 방법 #1

xown3197 opened this issue Nov 4, 2021 · 0 comments

Comments

@xown3197
Copy link
Owner

xown3197 commented Nov 4, 2021

해당 이슈에서의 설치 방법은 아래의 우분투 환경에만 해당되는 내용입니다.

  • Ubuntu Impish 21.10
  • Ubuntu Hirsute 21.04
  • Ubuntu Focal 20.04 (LTS)
  • Ubuntu Bionic 18.04 (LTS)

Set up the repository

  1. 패키지 인덱스 업데이트 및 설치
sudo apt-get update
sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
  1. Docker’s official GPG key 추가
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  1. Docker 패키지 업데이트
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker Engine

  1. apt 패키지 업데이트 및 docker 설치
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

++ Hello world

sudo docker run hello-world

실행 후, 아래와 같이 메세지가 나온다면 정상적으로 docker를 설치하신 겁니다.

Hello from Docker!
This message shows that your installation appears to be working correctly.


보다 자세한 내용은 Docker docs - install을 참고하시기 바랍니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant