Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker successfully builds image but it says created 6 days ago

Tags:

docker

I am trying to build a custom image and tag it. I am using this command:

docker build -t chatbot:5 .

At the end it returns:

Successfully built f5fbad09c6ae
Successfully tagged chatbot:5

However, when i run the command docker images i see this line (among others):

chatbot             5                   f5fbad09c6ae        6 days ago          832MB

EDIT: I also see that different versions of this image have the same image id

Why it says created 6 days ago?

like image 846
Matej J Avatar asked Oct 19 '25 04:10

Matej J


1 Answers

Use --no-cache to rebuild

docker build -t chatbot:5 . --no-cache

If it still doesn't work, just remove the image first

docker rmi chatbot:5