8 lines
159 B
Bash
Executable File
8 lines
159 B
Bash
Executable File
#!/bin/bash
|
|
CONTAINERS=`docker ps -a -q`
|
|
if [[ -z "$CONTAINERS" ]]; then
|
|
echo "No containers to cleanup, exit now."
|
|
exit 0
|
|
fi
|
|
docker rm $@ $CONTAINERS
|