docker dangling images code example
Example 1: remove all images docker
docker rmi $(docker images -a -q)
Example 2: docker prune system
docker system prune -a
Example 3: docker remove dangling images
docker image prune
Example 4: docker dangling images
docker images -f dangling=true