Git Product home page Git Product logo

Comments (14)

jessfraz avatar jessfraz commented on May 24, 2024 1

from reg.

jessfraz avatar jessfraz commented on May 24, 2024

from reg.

francislavoie avatar francislavoie commented on May 24, 2024

Yeah I know that, but how do I get the digest for the argument to rm? I want to delete a specific tagged image, for example something like reg rm repo/image:2.0.1 but it looks like I need to give a digest like reg rm repo/image@sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 but I don't have a way to find out the digest of that tag.

from reg.

jessfraz avatar jessfraz commented on May 24, 2024

from reg.

jessfraz avatar jessfraz commented on May 24, 2024

from reg.

francislavoie avatar francislavoie commented on May 24, 2024

A quick google gave me an answer the might resolve this: a Docker-Content-Digest is returned in the /v2/<name>/manifests/<reference> call, maybe you could extract that and display it?

from reg.

francislavoie avatar francislavoie commented on May 24, 2024

Oh okay, yeah ref works. I wouldn't mind an explicit command or something to make it easier, would be nice to get a command that can first get the manifest ref and pipe it into an rm. Something like rmtag or something?

from reg.

francislavoie avatar francislavoie commented on May 24, 2024

I can envision doing something crazy like

reg tags repo/image | sort -V | head -n 5 | xargs -L 1 reg rmtag

to delete the first 5 tags

from reg.

jessfraz avatar jessfraz commented on May 24, 2024

from reg.

jessfraz avatar jessfraz commented on May 24, 2024

from reg.

francislavoie avatar francislavoie commented on May 24, 2024

Alright, thanks!

I'll try it out tomorrow, heading home now.

from reg.

francislavoie avatar francislavoie commented on May 24, 2024

@jessfraz cool, I'm getting v2 schemas now. 👍

from reg.

pasikarkkainen avatar pasikarkkainen commented on May 24, 2024

Yep, it seems to be able to actually delete specific tags one needs to get the correct ref digest from the tag manifest debug output, it's not visible in the normal tag manifest output, for some reason..

from reg.

jessfraz avatar jessfraz commented on May 24, 2024

it now gets the digest to delete

from reg.

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.