Created
August 24, 2018 22:25
-
-
Save mnguyenngo/cc9c532b3b5914eb67e5744cf83abdc5 to your computer and use it in GitHub Desktop.
Typical workflow for pushing docker images to a remote repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see all images | |
sudo docker images | |
# docker tag command help | |
docker tag --help | |
# add your tag to the image | |
sudo docker tag monolith:1.0.0 <your username>/monolith:1.0.0 | |
# you can also rename the image | |
sudo docker tag monolith:1.0.0 udacity/example-monolith:1.0.0 | |
sudo docker login # login with username and password | |
# push the image to the repo | |
sudo docker push udacity/example-monolith:1.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment