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