codegurukool.com · Free coding tutorials & online compiler

Home › Docker Tutorial › Docker Hub: tag and push

Docker Hub: tag and push

Share your image.

Log in with docker login. An image name has the form user/name:tag. docker tag gives an existing image a new name, and docker push uploads it so others can docker pull it. Private registries (GitHub, AWS, Azure) work the same way with a registry host in front of the name.

Example code

docker tag myapp:latest myuser/myapp:1.0
docker push myuser/myapp:1.0

Run this code in the online editor

← Compose commandsInspect containers →