docker force remove container code example
Example 1: remove stopped containers
$ docker rm $(docker ps -a -q)
Example 2: docker force remove container
docker rm -f [containerid]
Example 3: how to remove a docker container
docker container rm [container id]
Example 4: docker remove container
docker system prune