-
Delete all containers
$ docker ps -q -a | xargs docker rm -f
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
- Delete all untagged images
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
Delete all containers
$ docker ps -q -a | xargs docker rm -f
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID