成都创新互联网站制作重庆分公司

docker入门24小时

docker

docker install For Centos7

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 run hello-world

docker run

docker images

docker pull centos

docker run --name centos1 -itd -v /opt:/opt:rw -p 80:80 centos

docker manager

# login container
docker attach centos1
# logout container
ctrl+p ctrl+q

docker local repo

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

文章标题:docker入门24小时
地址分享:http://cxhlcq.com/article/jgcdde.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部