How to push image to docker registry

DevOps Oct 6, 2019

After bought a testing server for studying micro-service, I got a need of creating my own docker registry and push to it. Here are the steps:

First, log in to the registry using your development machine

docker login registry.***.com

Then, tag your image

docker tag my-image:0.0.1-SNAPSHOT registry.***.com/me/my-image:0.0.1-SNAPSHOT

Finally, push

docker push registry.***.com/me/my-image:0.0.1-SNAPSHOT

All done


Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.