Comments (5)
There is no such thing at the moment no. You can set up a lifecycle policy in S3 though, be careful so the deleted data don't break the integrity of the image graph!
from distribution.
@milosgajdos Thanks for your quick response. I see that you've mentioned the S3 lifecycle policies here. I agree that these could be done but I am unsure how to setup a proper lifecycle policy for the same.. I mean I don't know which files should I delete and which to retain? Can you help me out on that please?
Thanks.
from distribution.
This is a complicated problem @dextercrypt ...you need to make sure you won't break the integrity of the content stored in registry so the S3 lifecycle policy can really help maybe with purging broken uploads but I'd not use it for the use case you're after.
We've no plans to implement this at the moment, but feel free to take a stab at it!
from distribution.
Hi @milosgajdos, Okay I understood the issue. I might look at it further but at this moment do you know how can I set this up or you know someone who managed to do this? The reason I am afraid to put a lifecycle on this is that once it breaks the Layer files of the Registry, I fear that my registry would get corrupted or something and I might lose my data. Is there any way you can help?
from distribution.
The reason I am afraid to put a lifecycle on this is that once it breaks the Layer files of the Registry, I fear that my registry would get corrupted or something and I might lose my data. Is there any way you can help?
Yes, that's the right worry...as I said:
This is a complicated problem @dextercrypt ...you need to make sure you won't break the integrity of the content stored in registry
No, I don't know anyone I'm afraid. And as I said, I'd be wary about implementing it in S3...lifecycle policies in S3 are handy for purging failed uploads though. But not useful at all for application-aware stores.
from distribution.
Related Issues (20)
- Why doesn't the tags interface support retrieval? HOT 1
- stale NFS file handle HOT 1
- Can't get manifest for this package on earlier docker clients? HOT 4
- Support for Azure DNS zone endpoint
- _uploads & _layers folders for failed images still exist in S3 storage HOT 2
- S3 driver: panic: runtime error: invalid memory address or nil pointer dereference HOT 5
- typo in error message HOT 2
- AWS S3 storage & EKS Pod Identity HOT 3
- After configuring authentication, can log in normally, but when pulling the image, you are prompted with a 401 error. HOT 2
- Pushing a manifest with a sha512 digest fails HOT 2
- Confused auth flow documentation HOT 1
- Failed to get proper image config (containerd image store) HOT 2
- HTTP GET on /v2/<repo>/manifests/<tag> fails with read-only filesystem HOT 7
- Registry 3.0.0-beta.1 does not printout full error details when running as a proxy
- Add S3 lifecycle tags to `_uploads` and other purgable files
- Exclusion of not used images/blobs while Garbage Collection
- Flaky test: TestDeleteOnlyDeletesSubpaths HOT 10
- Support `Virtual Hosted Style` s3 complicated storage servers. HOT 2
- Server does not comply W3C preflight-request specification HOT 3
- Garbage collector removed all blobs and corrupted the 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 distribution.