启动一个带登录账号密码的registry容器
rm -rf /opt/registry mkdir -p /opt/registry/auth mkdir -p /opt/registry/data docker run --rm --entrypoint htpasswd registry -Bbn geostack-dib 123@Abc.com >> /opt/registry/auth/passwd docker run --name registry -d -p 5000:5000 --restart=always -v /opt/registry/auth:/auth -e "REGISTRY_AUTH=htpasswd" -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/passwd -v /opt/registry/data:/var/lib/registry registry