$ 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
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?