CentOS安装Docker记录
1.sudo yum install -y yum-utils安装工具
2.sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo安装docker报错,看这个链接,这个完全可以。CentOS安装Docker报错Could not fetch/save url时使用阿里云镜像解决-开发者社区-阿里云
# step 1:sudo yum install -y yum-utils device-mapper-persistent-data lvm2
# Step 2:sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# Step 3:sudo sed -i 's+download.docker.com+mirrors.aliyun.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
# Step 4:sudo yum makecache fast
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Step 5:sudo service docker start
# Step 6:sudo systemctl enable docker
3.sudo systemctl start docker启动docker
sudo systemctl status docker验证启动成功
sudo docker run hello-world测试docker
Docker运行hello-world镜像失败或超时:Unable to find image ‘hello-world:latest‘ locally Trying to pull reposi_unable to find image 'hello-world:latest' locally-CSDN博客测试失败,白高兴一场,试试这个,搞一个Docker镜像
少东西了,汰!截图的这个不够,运行文章里面的内容,多一点。
okkkkk。
应该结束了,到此为止,安装好了。
