A Docker image with no label is sometimes referred to as a “dangling image”. These may be unused leftovers that have accumulated over time. You can remove any unused images all at once like this:
sudo docker image prune
You’ll get a standard message:
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N]
Hit Y if you’re okay with the action.
To remove specific images, you can do this:
sudo docker image rm {image id}
You can remove multiple images by adding more IDs to the command. If any of the images are required by a container, then you’ll get a message like:
Error response from daemon: conflict: unable to remove repository reference "Fedora Workstation" (must force) - container cd20b396a061 is using its referenced image 75835a67d134
docker build
errored out, and Docker left the last completed stage so that you could debug if needed),