How to push image to docker registry

DevOps Oct 5, 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

Tags