remove image docker by name code example
Example 1: remove docker images
docker system prune -a
Example 2: docker remove image its name
docker rmi centos
#centos is the name of the docker image
docker system prune -a
docker rmi centos
#centos is the name of the docker image