docker tag image code example
Example 1: docker tag
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Example 2: how to change the tag of docker image
docker tag 7b9b13f7b9c0 ubuntu/dev:v1.6.14.2017
Example 3: docker push image
$ docker tag rhel-httpd registry-host:5000/myadmin/rhel-httpd
$ docker push registry-host:5000/myadmin/rhel-httpd
Example 4: pushing image to docker hub
docker push yourhubusername/verse_gapminder
Example 5: image taggen docker
docker tag <containerid> <yourtag>
Example 6: docker images command
docker images
NOTE:
To see which images are present locally, use the "docker images" command:
REPOSITORY TAG IMAGE ID CREATED SIZE
debian jessie f50f9524513f 5 days ago 125.1 MB
debian latest f50f9524513f 5 days ago 125.1 MB