# docker rmi $(docker images --filter "dangling=true" -q)
# Remove all containers that aren't running.
docker rm -vf $(docker ps -a -q --filter "status=exited")
# Remove untagged images.
docker rmi -f $(docker images -q -f "dangling=true")
# Remove unused volumes using "rm" or "prune".
docker volume rm -f $(docker volume ls -f "dangling=true")
docker volume prune -f
# Remove unused networks.
docker network prune -f
# Remove an individual container by ID or name.
# Use "-v" or "--volumes" to remove associated volumes.
# Use "-f" or "--force" to remove running containers.
docker rm -vf b0479f9d1ea4
docker rm --volumes --force ol7_ords_con
# Remove all the containers matching the "ps" output.
docker rm -vf $(docker ps -a -q --filter "status=exited")