How to remove old Docker containers

0 votes
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
• 6,900 points
26 views

1 answer to this question.

0 votes

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,620 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
• 9,370 points
31 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
55 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 16, 2018 in Docker by Sophie may
• 9,370 points
184 views
0 votes
1 answer

How to list containers in Docker

To show only running containers use the given command: docker ...READ MORE

answered Jul 20, 2018 in Docker by Kalgi
• 37,320 points
25 views
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,160 points
95 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,620 points
79 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,620 points
51 views