"Add -f to get rid of all unused images (ones with no containers running them)."
But the option is actually `-a` -- `-f` just simply skips the prompt.
docker rmi -af
I'm a bit confused by the backticks as I use them all the time scripting, but also in Markdown.
#stop and delete all containers
docker rm -f $(docker ps -a -q)
#delete all images
docker rmi -f $(docker images -q)
docker rm $(docker ps -qa --no-trunc --filter "status=exited") docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
docker container rm $(docker container ls -qa)
docker image rm $(docker image ls -q)