Summary: 1. Pull the registry image, for example, docker pull daocloud.io/registry in the private image warehouse daocloud.io/registry 2. Run the container, hang the docker image warehouse /var/lib/registry in the image to the local /root/ my_docker_registry
1. Pull the registry image, for example, docker pull daocloud.io/registry in the private image warehouse
daocloud.io/registry
2. Run the container, hang the docker image warehouse /var/lib/registry in the image to the local /root/my_docker_registry directory, and expose port 5000
docker run -d -v /root/my_docker_registry:/var/lib/registry -p 5000:5000 --name my_docker_registry daocloud.io/registry
3. Test 127.0.0.1:5000/v2
4. Pass Dockerfile builds a new image, you can directly specify the registry and label
docker build -t 127.0.0.1:5000/mysql:1.3 .
5.Push to the private warehouse
docker push 127.0.0.1:5000/mysql:1.3 6.Access
127.0.0.1: 5000/v2/_catalog to see if there is a mirror of mysql:1.3
7. Pull the mirror to the local
docker pull 127.0.0.1:5000/mysql:1.3
Docker's private repository registry
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326610731&siteId=291194637
Ranking