Sunday 15 July 2012

How to remove old Docker containers -


This question relates to .

I'm wondering how to remove old containers docker rm 3e552code34a lets you delete a single, but I already have a lot of code does not give the selection option (such as all, or by the name of the image).

Perhaps there is a directory in which these containers are deposited, where I can remove them manually?

There is a new feature in the call: Docker Container Sorting It does the same You should work the same way on all platforms you want.

There is also one, which will clear the container, picture, volume and network in an order.

Basic Answer:

There is some talk about the Dodder Cleanup Command. You can find information about this ticket:

Unless the order is available, you can command the dockers together with the other Unix commands so that you may need it. Here's an example of how old old containers are cleaned:

  $ docker ps --filter "status = exited" | Grep 'weeks ago' | Awk '{print $ 1}' | Xargs --no-run-if-empty Doker RM   

To give credit, where is the reason, this is from the example.

No comments:

Post a Comment