docker run container and delete code example
Example 1: docker delete all containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Example 2: docker remove
cheat sheet
https://github.com/lifeeric/docker-cheat-sheet
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
cheat sheet
https://github.com/lifeeric/docker-cheat-sheet