how to configure Docker Registry

View previous topic View next topic Go down

how to configure Docker Registry

Post  satheesh on Mon Jun 12, 2017 11:22 am

Start your registry

docker run -d -p 5000:5000 --name registry registry:2


Pull (or build) some image from the hub

docker pull ubuntu


Tag the image so that it points to your registry

docker tag ubuntu localhost:5000/myfirstimage


Push it

docker push localhost:5000/myfirstimage


Pull it back

docker pull localhost:5000/myfirstimage


Now stop your registry and remove all data

docker stop registry && docker rm -v registry

satheesh

Posts : 7
Join date : 2010-06-24

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum