[ubuntu] Docker & Portainer 설치

young·2024년 4월 4일
0

Docker

목록 보기
1/4
post-thumbnail

docker 설치

sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gps

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

sudo apt-key fingerprint
sudo apt-key fingerprint 0EBFCD88
"deb [arch=$(dpkg --print-architecture) 
signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | udo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt-cache policy docker-ce
sudo apt -y install docker-ce
sudo docker version
sudo usermod -aG docker leo(자신의 아이디)
sudo systemctl daemon-reload
sudo systemctl enable docker
sudo sytemctl restart docker
-리눅스 재시작
-moba 재접속
docker version![](https://velog.velcdn.com/images/young_01/post/4b2649c2-f447-47e4-86da-515c879b1765/image.txt)

GUI - portainer

docker에 Portainer 등록

$ docker pull portainer/portainer-ce

docker container 가동

profile
ฅʕ•̫͡•ʔฅ

0개의 댓글