How to remove all docker containers

Aug 2 2019,   @Haseebeqx

There are multiple one liners to remove docker container

the simplest one is
docker rm -f $(docker ps -a -q)
to remove all docker images and free
docker rmi $(docker images -q)

Tags

docker