Login to docker hub.
docker login --username <username> --password <password>
If you skip the --password, it will prompt you to enter during execution.
Grab the ID of image.
docker images ---> And get from the list generated.
Set a tag
docker tag <id_of_image_read> <hub_account>/<repo_name>:<tag(mostly new tag name)>
Push to Hub
docker push <hub_account>/<repo_name>
It pushes/syncs all the tags.
Reference
No comments:
Post a Comment