标签:class try div logs gis odi usr check oca
#检查端口5000是否被占用
netstat -tunlp | grep 5000
# the local host ip is 172.17.0.1
# pull registry
mkdir -p /opt/myregistry
docker run -d -p 5000:5000 --name registry --restart=always -v /opt/myregistry:/usr/lib/registry registry:2.4.1
# double check the registry is ok.
curl http://172.17.0.1:5000/v2
# modify https to http
echo "{"insecure-registries:["172.17.0.1:5000"]"}"
docker pull busybox
docker tag busybox 172.17.0.1:5000/busybox01
docker rmi busybox
docker push 172.17.0.1:5000/busybox01
docker rmi 172.17.0.1:5000/busybox01
docker pull 172.17.0.1:5000/busybox01
标签:class try div logs gis odi usr check oca
原文地址:http://www.cnblogs.com/xuelong3/p/7900580.html