安装docker
yum install docker
启动docker服务
systemctl start docker.service
systemctl enable docker.service
下载官方centos镜像到本地
docker pull centos
确认已经获取到centos镜像
docker images centos
运行一个docker容器
docker run –I –t centos /bin/bash
查看当前正在运行的docker容器列表
docker ps
docker registry安装
获取registry的镜像
docker pull registry
运行registry容器
docker run –d –v /opt/registry:/var/lib/registry –p 5000:5000 –restart=always –name registry registry