How do i tag a docker image?
-
Man page for docker tag: http://bit.ly/2lUQFOm
Man page for docker image ls: http://bit.ly/2j3PXxcTagging makes things easy to search and identify them from other images.
To tag a docker image, run the following command. The /env/dev/zookeeper, is part of the registry path, the 3.3.6 is the tag.
$ docker tag zookeeper localhost:5000/env/dev/zookeeper:3.3.6
Run a docker image list. "docker image list" does the same. Here you can see the registry and the tag
$ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE zookeeper latest c22925343447 44 hours ago 144MB localhost:5000/env/dev/zookeeper 3.3.6 c22925343447 44 hours ago 144MB registry 2 a07e3f32a779 15 days ago 33.3MB alpine latest 053cde6e8953 15 days ago 3.97MB
© Lightnetics 2024