This repository has been archived on 2021-04-14. You can view files and clone it, but cannot push or open issues/pull-requests.
bare-dotfiles/bin/clean-stopped-containers

5 lines
86 B
Plaintext
Raw Normal View History

#!/bin/bash
for i in $(docker ps -aq -f status=exited) ; do
docker rm -f -v $i
done