Comments (14)
from reg.
from reg.
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.
from reg.
from reg.
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.
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.
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.
from reg.
from reg.
Alright, thanks!
I'll try it out tomorrow, heading home now.
from reg.
@jessfraz cool, I'm getting v2 schemas now.
from reg.
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.
it now gets the digest to delete
from reg.
Related Issues (20)
- Please tag a new release HOT 2
- Tests don't pass after cloning and running make test HOT 3
- Support to pass Client CERT/Key and CA CERT HOT 2
- Manifest Lists incorrectly queried from Docker Hub HOT 1
- Can't run clean install using go modules HOT 2
- registry type HOT 2
- Reg leaving lot of openfiles on the registry HOT 1
- behavior of ping is against Docker v2 API Spec HOT 2
- reg server update interval HOT 1
- `reg rm` deletes more than just the specified tag HOT 5
- Add pagination support for tag listing
- clair.layer400 Bad Request: "vulnerability scanning for <image> failed: clair error: could not find layer" HOT 2
- vulns return invalid character '<' HOT 1
- Docs don't explain how to manage insecure private registry HOT 3
- Why this project has no documents about how to use its API (import) ?
- Add option to map digest to tag
- RSS or Atom feed for repository tags
- go install gives error
- reg dont use /etc/hosts
- `reg rm` irritatingly states "docker.io" for image deleted from GitLab registry HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reg.