1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash ids=$(docker ps -aq --filter ancestor=hc2vpp) # Stop all hc2vpp based containers echo "Stopping containers: $ids" docker stop $ids # Delete all hc2vpp based containers echo "Removing containers: $ids" docker rm $ids