Delete all images not used by the container, (the ones used before will be kept, docker ps -a to view)
docker image prune -a
Delete all images not used by the container, (the ones used before will be kept, docker ps -a to view)
docker image prune -a