How to remove old Docker containers

+1 vote
I want to remove old containers. The docker rm 3e552code34a lets you remove a single one, but I need to remove more than one.

Can someone please help me with this?
Jul 18, 2018 in Docker by Nilesh
• 7,060 points
732 views

1 answer to this question.

+1 vote

There is a new feature in Docker 1.13.x called Docker container prune: docker container prune This will do what you want and should work on all platforms the same way.

There is also a docker system prune: docker system prune, which will clean up containers, images, volumes, and networks all in one command.

answered Jul 18, 2018 by Kalgi
• 2,680 points

Related Questions In Docker

0 votes
1 answer

How to remove old Docker images?

Run the following command: docker $ (docker images ...READ MORE

answered Jul 17, 2018 in Docker by Sophie may
• 10,620 points
778 views
0 votes
1 answer

How to remove all docker containers in a single command?

Hi@akhtar, I don't think there are any pre ...READ MORE

answered Apr 27, 2020 in Docker by MD
• 95,460 points
1,097 views
+1 vote
2 answers

How to run docker containers on different machines

You can use labels and selectors for ...READ MORE

answered Oct 23, 2018 in Docker by Laila
3,588 views
0 votes
1 answer

How to obtain the Docker container's IP address from the host?

This can be done by executing the ...READ MORE

answered Jul 17, 2018 in Docker by Sophie may
• 10,620 points
8,872 views
+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,714 views
0 votes
1 answer

How to store data in external drive with Docker Postgres:9.3 image?

Apparently, the problem would be in your ...READ MORE

answered Jul 12, 2018 in Docker by Kalgi
• 2,680 points
2,624 views
0 votes
1 answer

How to deal with persistent storage (e.g. databases) in docker

For Docker 1.9.0 and above, Use volume API docker ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,680 points
770 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