(编辑:jimmy 日期: 2024/11/8 浏览:2)
https://docs.docker.com/engine/install/centos/
yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
yum install -y yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
yum install docker-ce docker-ce-cli containerd.io
下面这一步选择 y
然后会出现下面这种情况:(官网已经给了我们提示)指纹匹配选择 y
systemctl start docker
docker version
docker run hello-world
出现Hello from Docker说明测试成功