Where are these Docker images stored and can I delete them?

I was working on an open-source project and wanted to make it more accessible to the users by creating a Docker image of the same. Now, please keep in mind that I am new to Docker so apologies in advance if this sounds stupid.

Here’s what I did:

  1. Created a Docker image
  2. Tagged it as 1.0.0
  3. Uploaded it on Docker Hub

Now, when I open Docker Desktop I can still see 2 images: project:latest, project:1.0.0. I can also see the image project:1.0.0 on Docker Hub. My question is, where are these images which are shown on Docker Desktop stored? Now that my image is on Docker Hub, can I delete these images showing on Docker Desktop?

Docker Hub is just a registry. Of course you can delete local images if you don’t need them locally, but when you want to run a container, Docker will download the image and start from that.

The loal images are in the virtual machine of Docker Desktop, but you don’t really have to know that as you shouldn’t manually delete or write those files at all. Use docker commands to delete the image. The docker --help command shows you what subcommands are available like docker image rm

1 Like