Skip to content

Instantly share code, notes, and snippets.

@oscarrodar
Last active October 27, 2018 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oscarrodar/1b502ac4369b87502d0c1c91e7b524e3 to your computer and use it in GitHub Desktop.
Save oscarrodar/1b502ac4369b87502d0c1c91e7b524e3 to your computer and use it in GitHub Desktop.
Docker Help

Usefull commands for Docker-Beginners

Here you can find a helpful guide to start pushing your docker images to your private or public registry.

# First save the new image by finding the container ID
docker ps
# Then commit it to a new image name
docker commit <container-id> <new-image-name>
# Now login to the docker registry 
docker login <hub.docker.com>
# Tag an image 
docker tag <imageid> hub.docker.com/<namespace>/<imagename>:<version>
# Push the image 
docker push hub.docker.com/<namespace>/<imagename>:<version>

with ❤️ - Oscar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment