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 27, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
1,759 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 27, 2018 by shubham
• 7,340 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,700 points
819 views
0 votes
2 answers

How to build docker images using VS2017?

Open Visual Studio and create a new project. Select ASP.Net Core Web ...READ MORE

answered Aug 25, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,359 views
0 votes
1 answer
+2 votes
1 answer
+2 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
• 58,020 points
2,715 views
0 votes
2 answers
+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
• 7,340 points
1,203 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP