Remove an image tag from Docker Hub?

63.5k Views Asked by At

I was unable to find resources to understand how Docker Hub images can be managed.

I have an image tagged with V0.0.1 and built a new one tagged V0.0.2. Now I want to remove the V0.0.1 image as the new version is built differently and I don't want users to pull the old image.

11

There are 11 best solutions below

2
On

I've finally found how to do it in 2020!

You can't remove a tag from the "Tags" page right now but there is still a way:

  1. Go to the image page on Dockerhub
  2. Click on "Manage repository"
  3. Click on "See all" under "Tags and Scans"
  4. Now you can check the tags and use the action "Delete"
1
On

there is a big red "DELETE" button in "Settings" Tab when you login into your Docker Hub.

4
On

In a previous version of the Hub, you could do this via the "Tags" tab, which showed a little 'x' that you could click to delete the tag. In the new version of the Hub, this seems to have gone. I can only assume the functionality will return at some stage.

The relevant issue seems to be https://github.com/docker/hub-feedback/issues/68.

At the moment, the only workarounds I can see are:

  • Delete the repository and recreate it, pushing just the tags you want to keep
  • Contact Docker support and ask them to manually remove the unwanted tags
1
On

People have been saying that the feature to delete specific tags from the Docker Hub UI has been removed, but this is inaccurate, it's just a bit more hidden.

  1. go to your repository in Docker Hub
  2. go to "Tags"
  3. at the bottom, click the "see all" link
  4. press the "..." menu to the right of the tag you want to delete
  5. press "delete"

This will allow you to delete a specific tag on the new version of Docker Hub.

0
On
  1. Open hub.docker.com and sign in.
  2. Click on Details for your image.
  3. Click on Tags.
  4. Click on the delete icon (bin) on the right.

Unfortunately, even if you delete the only tag for that image, the image will still be listed in your account/repository. However, anyone who tries docker pull on that image will get an error message. I guess the only way to delete the image entirely is to delete the account (and all its images).

4
On

Its possible, click in details on repository after click in Settings. Look the image:

print screen

0
On

Since Docker Hub recently updated its user interface, you can now find the delete option under the settings tab of your repository.

So following is the workflow:

  1. Go to Repositories
  2. Select your repository to delete
  3. Select Settings tab
  4. Click Delete Repository button
  5. In the pop-up enter the repository name to confirm and confirm delete.

enter image description here

However, if you want to delete an image, go to the Tags tab. Click on the "..." symbol, it will give you the option for removing the image as shown in the following image

enter image description here

3
On

You can easily remove or delete a tag with an image from Docker hub.

  1. Log in to Docker Hub.
  2. Go to "Repositories" on the top navigation bar, then open a specific image.
  3. Click the "Manage Repository" button.
  4. Go to the "Tags" tab on the top of the page.
  5. Mark the tag which you are going to remove with a checkbox.
  6. You will see an "Action" drop-down box on the top left. Click it and select "Delete".

tag deletion screenshot

That's it.

0
On

Use https://github.com/docker/hub-tool

hub-tool tag rm --verbose --force docker.io/username/imagename:tag

For the login and more details see: https://stackoverflow.com/a/59334315/5155484

4
On

As of October 2016, delete button/icon is available when you click on your Docker Hub repository and Tags tab, on the right hand side of each version.

Docker Hub screenshot

1
On