Docker 설치
최대한 필요한 부분만 간단하게 요약했습니다. ubuntu 유저분들은 그대로 따라 오시면 됩니다.
# update
sudo apt-get update
# using https for download
sudo apt-get install -y apt-transport-https
# https certification
sudo apt-get install -y ca-certificates
# https url file transfer protocol
sudo apt-get install -y curl
# repository register
sudo apt-get install -y software-properties-common
# add GPG key
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# check gpg
sudo apt-key fingerprint
# add repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# check list (ubuntu version에 따라 없을 수도 있음)
sudo grep docker /etc/apt/sources.list
# update
sudo apt-get update
# install
sudo apt-get install -y docker-ce
# check docker status
sudo docker --version
sudo systemctl status docker
*reference
https://docs.docker.com/engine/install/ubuntu/
'Backend > Docker, k8s' 카테고리의 다른 글
Docker + Frontend(Nginx, React) + Backend(Nginx, Gunicorn, Django, PostgreSQL) (7) | 2023.06.20 |
---|---|
Docker Compose - tutorial (0) | 2023.06.18 |
Docker - Tutorial (0) | 2023.06.17 |
k8s - Service (0) | 2023.04.28 |
k8s - Pod (0) | 2023.04.27 |