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,250 points
28 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,480 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
42 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,100 points
56 views
0 votes
1 answer
+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,480 points
32 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.