Operating dozens of Docker containers on a single host could be problematic.

If you are looking for a simple way to delete only stopped containers on your server, you can use the shell script snippet below

for container in `docker ps -a --filter "status=exited" --format '{{ .Names}}'`; do
    echo -e "Removing zombie container $container"
    docker rm -v $container
done

Hope it helps ๐Ÿ˜ƒ