How to remove old Docker images

0 votes
I’ve been running docker for a long time and there are a lot of unused images in my system. How can I remove all unused docker images safely?
Jul 17, 2018 in Docker by Tyrion anex
• 8,690 points
1,576 views

1 answer to this question.

0 votes

Run the following command:

docker $ (docker images --filter "dangling=true" -q --no-trunc)

The dangling=true filter finds any unused images

Hence, any intermediate image that is no longer referenced by a labelled image is removed.

answered Jul 17, 2018 by Sophie may
• 10,620 points

Related Questions In Docker

+1 vote
1 answer

How to remove old Docker containers

There is a new feature in Docker 1.13.x called Docker ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,680 points
1,642 views
+1 vote
2 answers
0 votes
1 answer

How to get docker-compose to always re-create containers from fresh images?

The containers are getting recreated to preserve ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 52,340 points
5,638 views
0 votes
1 answer

How to remove docker installed using wget

The uninstallation step mentions: sudo apt-get purge -y docker-engine sudo apt-get ...READ MORE

answered Jul 30, 2018 in Docker by Kalgi
• 52,340 points
1,908 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,861 views
0 votes
2 answers
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,620 points
4,852 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