install docker

Published by onesixx on

맥북 인텔 vmware에 설치된 ubuntu 24.04.1에 docker설치

맥북의 iterm으로 작업할수 있는 환경설치

vmware unbuntu 설치
서버명 ubt
사용자 ubtusr/1
실명  uonesixx

> sudo apt update
> sudo apt upgrade -y

> sudo apt install openssh-server net-tools ufw

> sudo systemctl enable ssh
> sudo systemctl start  ssh
> sudo systemctl status ssh

> sudo ufw allow ssh
> sudo ufw enable
> sudo netstat -tuln |grep 22

> ifconfig
(ens33: inet 172.16.16.166)
iterm에서 
ssh ubtusr@172.16.16.166

docker설치

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

> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
> 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

> sudo apt update
> sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

> sudo systemctl start docker
> sudo systemctl enable docker
> sudo systemctl status docker

> sudo docker run hello-world
> sudo usermod -aG docker $USER

> sudo reboot

Categories: Tool-SW

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x