clean up docker containers code example
Example 1: how to clean up all docker containers
docker container list -qa | xargs docker container stop && docker container prune
Example 2: delete container id
docker rm $(docker ps -a -q)
docker container list -qa | xargs docker container stop && docker container prune
docker rm $(docker ps -a -q)