centos搭建自己的docker服务器

步骤:

yum install docker
systemctl start docker
systemctl enable docker
docker pull registry:2.6
docker run -d -p 1050:1050 --privileged=true -v /opt/registry:/home/registry registry:2.6
vi /etc/sysconfig/docker
OPTIONS='--insecure-registry 192.168.1.123:1050'
docker run -d -p 1050:1050 --privileged=true -v /opt/registry:/home/registry registry:2.6
docker ps
 

你可能感兴趣的:(centos,docker,registry,systemctl,yum)