Remove old and unused Docker images

0 votes
I want to remove images pulled months ago, which is having the correct TAG. So, I'm trying to find a way to remove general unused images, which includes both untagged and other images such as pulled months ago with correct TAG.
Oct 26, 2018 in DevOps & Agile by Damon Salvatore
• 5,510 points
86 views

1 answer to this question.

0 votes

Here is what you can try.

docker system prune will delete all dangling data (i.e. In order: containers stopped, volumes without containers and images with no containers). Even unused data, with -a option.

You can also use one of the below option to fulfill your requirement:

For unused image,

docker image prune -a

I hope that it will help you resolve your query.

answered Oct 26, 2018 by shubham
• 6,890 points

Related Questions In DevOps & Agile

0 votes
1 answer

How can a script identify the difference between Docker Toolbox and Docker for Windows?

Now, the Toolbox works through docker-machine. The way ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
66 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,920 points
227 views
+2 votes
1 answer

What is the difference between a container and an image in Docker?

 Below is reference which you can follow to know ...READ MORE

answered Sep 20, 2018 in DevOps & Agile by shubham
• 6,890 points
65 views