Thursday, July 5, 2018

docker image - remove old tag and add new tag


# Tag the image as below
# docker tag   e0d6b0ded794   <your_newtag_here>

Where <e0d6b0ded794> is the image id of the image you wish to update.


#remove old tag:

# docker rmi <your_old_tag_here>


# Check the image, you should only see the newtag:

# docker images | grep <your_newtag_here>


No comments:

Post a Comment