Giter VIP home page Giter VIP logo

Comments (6)

klausmeyer avatar klausmeyer commented on May 31, 2024

Hi @tylkotroszke,

thanks for reporting this bug. I was able to reproduce it by the following steps:

  1. Create a few docker images locally with the same content but different tags:
$ docker pull busybox

$ docker tag busybox localhost:5000/some/image:tag1
$ docker tag busybox localhost:5000/some/image:tag2
$ docker tag busybox localhost:5000/some/image:tag3

$ docker push localhost:5000/some/image:tag1
$ docker push localhost:5000/some/image:tag2
$ docker push localhost:5000/some/image:tag3
  1. Opening the Docker Registry Browser and delete the tag "tag1"
  2. Tags "tag2" and "tag3" are also gone

When I tried the same with tags having different contents I was not able to reproduce.

After a bit of research I've learned that there is currently no API to delete a single tag in the registry.

The endpoint I'm using is designed to delete the image referenced by the tag and not the tag reference itself. So basically this issue could only be solved by a new endpoint in the registry itself.

Source: https://serverfault.com/a/872336

For now the only thing I could do is to change the warning text and mention that deleting the tag will also delete also delete all tags referencing the same image-version.

What do you think?

Best, Klaus

from docker-registry-browser.

tylkotroszke avatar tylkotroszke commented on May 31, 2024

I see, you are right we were checking that on image with same content. It would be nice to have such a information when trying to delete tag. It was really confusing when all tags were deleted that why we created issue :)

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 31, 2024

It would be nice to have such a information when trying to delete tag.

👍 Sure will add it.

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 31, 2024

I've added the warning message now. Will be available as v1.2.2 tag or in latest soon.

from docker-registry-browser.

u1735067 avatar u1735067 commented on May 31, 2024

Hi, this seems to be supported now (https://serverfault.com/questions/872332/easy-way-to-remove-a-tag-from-a-private-docker-registry/872336#872336 / https://github.com/opencontainers/distribution-spec/blob/v1.0/spec.md#deleting-tags), could this be implemented?

from docker-registry-browser.

klausmeyer avatar klausmeyer commented on May 31, 2024

@u1735067 I just had a look and the feature isn't yet available in the latest release of the registry (2.8.1). They don't seem to add new features in 2.x. Let's wait for 3.0 then.

from docker-registry-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.