Remove just dangling images
docker image prune
Remove all images not references by container
docker image prune --all
Docker documentation