Docker

Images

Remove all images

06-06-2023, source: StackOverflow

docker rmi -f $(docker images -aq)

Containers

Remove all containers

06-06-2023, source: StackOverflow

docker rm -vf $(docker ps -aq)

Other

Remove everything

06-06-2023, source: StackOverflow

docker system prune -a --volumes