How to deploy docker registry
部署Docker仓库
Docker registry
#检查端口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:/var/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
Docker hub
harbor