扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
yum remove docker*
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
yum -y install docker-ce
systemctl enable docker && systemctl start docker
docker run hello-world
docker images
docker pull centos
docker run --name centos1 -itd -v /opt:/opt:rw -p 80:80 centos
# login container
docker attach centos1
# logout container
ctrl+p ctrl+q
docker pull registry
docker run --name localrepo -p 5000:5000 registry
docker tag centos 127.0.0.1:5000/justin/centos:v1
docker push 127.0.0.1:5000/justin/centos:v1
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流