removing dangling images in docker code example
Example 1: docker remove all containers and images
docker container stop $(docker container ls -aq)
Example 2: remove docker images
docker system prune -a
docker container stop $(docker container ls -aq)
docker system prune -a