docker how to remove a container code example
Example 1: docker remove all containers
docker rm $(docker ps -a -q)
Example 2: docker remov all running containers
docker rm $(docker ps -aq)
Example 3: how to remove a docker container
docker container rm [container id]
Example 4: docker remove
cheat sheet
https://github.com/lifeeric/docker-cheat-sheet