Docker trick: How to stop and remove all current containers

$ docker stop $(docker ps -a -q)
$ docker rm -f $(docker ps -a -q) 

For some system maintenance:

$ docker system df
$ docker container prune # Removes all stopped containers
$ docker image prune
$ docker volume prune

Or to delete everything that is not being used:

$ docker system prune