Delete all images of the local docker that are not referenced by the container:
docker image prune -a