公司动态
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 3sudo sed -i sdownload.docker.commirrors.aliyun.com/docker-ce /etc/yum.repos.d/docker-ce.repo# Step 4:sudo yum makecache fastsudo 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 docker3.sudo systemctl start docker启动dockersudo systemctl status docker验证启动成功sudo docker run hello-world测试dockerDocker运行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。应该结束了到此为止安装好了。