Comments (9)
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.
from go-containerregistry.
I'm also facing this issue. I ran crane ls
, did some grep magic and piped the output to xargs ... | xargs -I % crane delete "${REGISTRY}/${NAMESPACE}/${PROJECT}:%"
but get invalid checksum digest format
.
The help text does not indicate that a digest is expected and just like OP said I'd expect crane to resolve the tag accordingly:
▶ crane delete --help
Delete an image reference from its registry
Usage:
crane delete IMAGE [flags]
Flags:
-h, --help help for delete
Global Flags:
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform platform Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all)
-v, --verbose Enable debug logs
from go-containerregistry.
@iFrozenPhoenix could you share the output when you try this? thanks!
from go-containerregistry.
@sankalp-khare the error was something that the hash couldn't be found. Actually I can't reproduce it anymore.
Deleting a tag is now actually working. Can't say if it was a problem of the registry (distributon) or crane.
from go-containerregistry.
@sankalp-khare the error was something that the hash couldn't be found. Actually I can't reproduce it anymore.
Deleting a tag is now actually working. Can't say if it was a problem of the registry (distributon) or crane.
Can you add the crane version that you tested with so that I can check as well :-)
from go-containerregistry.
Sure, 0.19.0
from go-containerregistry.
crane delete x.x.x.x::443/my_test/ubuntu18.04:php7.2.10 --insecure
goroutine 9 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x19
github.com/google/go-containerregistry/pkg/v1/remote/transport.pickFromMultipleChallenges({0xc000014978, 0x1, 0x9a4fe6?})
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:174 +0x71
github.com/google/go-containerregistry/pkg/v1/remote/transport.pingSingle({0xa7c2a8?, 0xc00007c690}, {0x0?, {0xc000030450?, 0x0?}}, {0xa77f60, 0xc00003cb00}, {0x9a569d, 0x5})
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:90 +0x359
github.com/google/go-containerregistry/pkg/v1/remote/transport.pingParallel.func1({0xa7c2a8?, 0xc00007c690?}, {0x9a569d, 0x5})
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:122 +0x7e
created by github.com/google/go-containerregistry/pkg/v1/remote/transport.pingParallel
/home/jack/code/go-containerregistry/pkg/v1/remote/transport/ping.go:136 +0x2d2
bearer
Error: DELETE https://x.x.x.x:443/v2/my_test/ubuntu18.04/manifests/php7.2.10: UNSUPPORTED: unsupported digest php7.2.10: invalid checksum digest format
from go-containerregistry.
v0.19.1
from go-containerregistry.
harbor
from go-containerregistry.
Related Issues (20)
- ggcr: creating an empty image index that contains empty image manifest not supported
- crane: cannot push or validate .tar.gz format HOT 3
- crane: Cannot Append Windows Layer Without Duplicate "Files"
- gcrane: unable to transfer images from google container registry to google artifact registry HOT 1
- Getting panic while doing uncompressed HOT 1
- question: How to mutate an image's platform HOT 2
- ggcr: WriteImage race condition on Windows
- crane: Pulling by digest leads to a changed image when storing on disk
- question: How to inspect local podman image? HOT 1
- ggcr: StartInterval field missing in HealthConfig struct
- ggcr: k8schain package depends on seemingly unmaintained ACR cred helper
- Nil pointer dereference
- ggcr: Image write concurrency errors
- crane: fails on Windows with "Error: cannot parse hash: "sha256\\0401ae60059d7270e280bdd6db0d3b91afcf5b34be7271d39c2af0253479257b""
- ggcr: Breaking change in `aws-sdk-go-v2` leads to broken dependencies in upstream projects
- crane: AWS ECR SHA mismatch when pushing image tar vs direct copy
- ggcr: Expected error when parsing name reference that is an Image ID
- ggcr: Docker with Containerd snapshotter gives wrong config name
- crane: incorrectly uses compressed layer of a cosign .sig file to write OCI image from cache
- ggcr: registry: image manifests not persisted on disk when configured disk storage
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 go-containerregistry.