DOCKER IMAGE TAG
Commande : docker image tag
Usage: docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG] Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Créer une image taguée référençant une image existante :
docker image tag source[:tag] destination[:tag]
Equivaut à :
docker tag source[:tag] destination[:tag]
ex :
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest 113a43faa138 3 weeks ago 81.2MB $ docker tag ubuntu:latest darwinos/repotest:ubuntu-18.04 $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE darwinos/repotest ubuntu-18.04 113a43faa138 3 weeks ago 81.2MB ubuntu latest 113a43faa138 3 weeks ago 81.2MB
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE6d3b578baf20 23 seconds ago 1.16MB busybox latest e1ddd7948a1c 3 weeks ago 1.16MB $ docker image tag 6d3b578baf20 busybox:custom_V1 $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE busybox custom_V1 6d3b578baf20 57 seconds ago 1.16MB busybox latest e1ddd7948a1c 3 weeks ago 1.16MB