Docker: Remove all exited docker container

docker ps -a | grep "Exited" | awk '{print $1}' | xargs docker rm

0
By: leoman730
2015-08-11 16:01:15

3 Alternatives + Submit Alt

What Others Think

Global thermal scope of the e energy is launched for the fulfillment of the goals for the people. The approval of the energy source and http://serverhostingreviews.com/ is marked for the regular factors for the movement for the candidates in this ambit.
bonyh · 11 weeks and 4 days ago
Doker is sharing the news in which removing of all the exited docker container are plugged with the associated class. The system prone is sharing the volume of Jamaica all-inclusive Villas in the post of year 2018 with the multiple level association and kind regards.
nelagon · 10 weeks and 4 days ago
OV 13850 is on Ubuntu shared as the post blog in year 2017 that is about the Ubuntu which is used as the windows. I can’t find the information about the running of this camera module of window but ulta just finds the link in information of the formal content.
qizohemany · 6 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: