下载仓库
yum info docker-registry

yum install -y docker-registry
systemctl start docker
systemctl start docker-distribution.service
netstat -antp

查看
rpm -ql docker-distribution

镜像存储点

在另一台服务器上上传镜像到仓库服务器
docker pull busybox
docker tag docker.io/busybox:latest 49.232.67.186:5000/box:0.1 #;ip是仓库服务器的IP地址和开放的5000端口,box表示仓库,0.1表示版本
因为仓库只支持https传输所以要修改配置文件,是的不用https也可以传输
vim /etc/docker/daemon.json
{
"insecure-registries" : ["49.232.67.186:5000"]
}
在仓库配置文件中也需要修改
systemctl restart docker重启docker
docker push 49.232.67.186:5000/box #推镜像到仓库服务器
在仓库服务器
docker pull 49.232.67.186:5000/box:0.1
docker images

网友评论