The below removes all the Containers.
for f in docker ps -a -q; do docker rm $f; done
docker ps -a -q
The below removes all the Containers.
for f in
docker ps -a -q
; do docker rm $f; done