docker command for remove images code example
Example 1: remove docker image
docker image rm [image id]
Example 2: remove image docker
# If image from a private repo
docker image rm [OPTIONS] myuser/myrepo:myimage
[OPTIONS]
--force
docker image rm [image id]
# If image from a private repo
docker image rm [OPTIONS] myuser/myrepo:myimage
[OPTIONS]
--force