本文共 756 字,大约阅读时间需要 2 分钟。
# docker pull /daocloud.io/registry:latest
# docker run -d -it -p 5000:5000 daocloud.io/registry
# docker ps
# docker exec -it 容器ID /bin/sh
# curl -I 127.0.0.1:5000
# docker tag daocloud.io/daocloud/daocloud-toolest 10.18.44.171:5000/mydaocloud:v1
# docker pull 10.18.44.171:5000/mydaocloud:v1
Get : http: server gave HTTP response to HTTPS client
# vim /etc/docker/daemon.json { "insecure-registries":["10.18.44.171:5000"] }
重启docker
# systemctl restart docker
启动仓库容器
# docker start 容器ID
重新上传
# docker push 10.18.44.171:5000/my_daocloud:v1
查看仓库里的镜像
# curl 10.18.44.171:5000/v2/_catalog
转载于:https://blog.51cto.com/13523939/2091777