scripts/docker-rm-all

4 lines
72 B
Bash
Executable File

#!/bin/bash
docker ps -a | awk '{ if (NR>1) system("docker rm " $1) }'