how to remove containers code example
Example 1: remove all containers docker
docker rm $(docker ps -aq)
Example 2: how to remove a docker container
docker container rm [container id]
docker rm $(docker ps -aq)
docker container rm [container id]