docker:tldr:f3304
docker: Delete all unused images (not just those without a tag).
$ docker image prune --all
try on your machine
The docker image prune --all
command is used to remove all unused images from the local Docker image cache. Let's break down the different parts of this command:
docker
: This is the Docker command-line utility used to interact with Docker.image
: This is a subcommand used to manage Docker images.prune
: This is a specific action used to remove resources that are no longer in use.--all
: This flag is used to prune all images, including both dangling (untagged or unused) images and all unused images (not just the dangling ones).
When you run this command, Docker will scan your local image cache and remove all images that are not being used by any running or stopped containers. This helps to free up disk space, especially if you have accumulated a large number of unused images over time.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.