View existing images
docker images
My output shows like this:
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 78klio18m 2 weeks ago 77.9MB
**
Rename existing image:**
docker tag <source_name>:<source_tag> <target_name>:<target_tag>
example:
docker tag ubuntu:latest rasa:chatbot
Replace the placeholders:
: The current name of the image.
: The current tag of the image.
: The new name you want to assign to the image.
: (Optional) The new tag you want to assign to the image (if applicable).
Delete existing image
docker rmi ubuntu
finally
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
rasa chatbot ca8b0f1234c 2 weeks ago 77.9MB
Top comments (0)