Saturday, April 4, 2015

Docker - Remove All Containers by Image Name or ID

As I monkey around with Docker, I find that it is sometimes useful to remove all the containers based on the same image in a single command. So , without further ado, create a file in your PATH named docker-rmall and paste the following code into it: #!/bin/bash
docker rm $(docker ps -a | grep $1 | awk '{ print $1 }' | grep -v CONTAINER)
Make sure you grant executable permissions on the file. Now, to remove all of the containers associated with a particular image, you can simply run: docker-rmall <some_image_name_or_id>


  1. Betway Casino: Login - 100% up to US$1000
    Betway Casino Welcome Bonus & Promo Codes. Betway Casino has over 600 games including Slots, Blackjack, Roulette, Keno kadangpintar and 메리트 카지노 쿠폰 Baccarat and is one septcasino of the

  2. At this second, the player is allowed to put a further bet equal to the original wager. A player that doubles down can not ask for any extra hits after he’s been dealt his third card. Each player receives one card face down and the vendor deals himself last. From there the vendor deals another spherical of playing cards, this time 원엑스벳 inserting the card face up. If the vendor deals himself an ace as the face up card then he's required to ask gamers if they that they} wish to purchase insurance.