Loading

docker安装

最近学习,因为反复重置系统

被docker烦死了,总是忘记一些步骤,记一下

centos

yum install yum-utils -y
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum --showduplicates list docker-ce | sort -s
yum install docker-ce-26.0.0

ubuntu

sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt install -y docker-ce-26.0.0
docker --version

 

posted @ 2024-03-24 15:39  青瓦深巷  阅读(27)  评论(0)    收藏  举报