Skip to content

Instantly share code, notes, and snippets.

@mnguyenngo
Created August 24, 2018 22:25
Show Gist options
  • Save mnguyenngo/cc9c532b3b5914eb67e5744cf83abdc5 to your computer and use it in GitHub Desktop.
Save mnguyenngo/cc9c532b3b5914eb67e5744cf83abdc5 to your computer and use it in GitHub Desktop.
Typical workflow for pushing docker images to a remote repository
# 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