可以位于同一机器: docker run -d -p 5000:5000 --name registry registry:2 docker image tag nginx:latest localhost:5000/nginx:latest docker push localhost:5000/nginx:latest
可以位于同一机器: