Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propose intelligent deletion management approach #210

Closed
stevvooe opened this issue Feb 26, 2015 · 4 comments
Closed

propose intelligent deletion management approach #210

stevvooe opened this issue Feb 26, 2015 · 4 comments

Comments

@stevvooe
Copy link
Collaborator

Currently, deletes of content in the registry are allowed with administration privileges. This means layers and manifests can be deleted, with extreme prejudice. This meets most use cases where the goal is to remove old or unused layers. Unfortunately, this allows for one to corrupt a manifests by deleting dependent data. This is insufficient for integration into the docker client.

The registry API allows deletion of registry objects under various scenarios. The initial intent of the new registry implementation was to have deletes be integrated from the start. With the current state of the manifest specification, deletes were challenging to implement or impossible to implement reliably. Changes are occurring to address this in #62.

There are several aspects to this problem:

  1. Most registry data has interdependencies that are expressed internally but they are expensive to resolve while underlying data is changing.
  2. Deletes under eventual consistency results in odd scenarios that wouldn't be present in a transactional system. This fact needs to be considered.

We need to propose a solution that can allow for all proposed deletes in a reliable and safe manner.

@TomasTomecek
Copy link

Why is this closed?

@dmp42
Copy link
Contributor

dmp42 commented Sep 24, 2015

Soft delete have been implemented as part of the API, and more specialized issues have been opened for garbage collection.

@tunix
Copy link

tunix commented Jan 25, 2016

@dmp42 does soft delete, delete only the repository records/data and not the actual files & folders on the disk? can we use soft delete atm?

@dmp42
Copy link
Contributor

dmp42 commented Jan 25, 2016

@tunix you should find info about it here: https://github.com/docker/distribution/blob/master/docs/spec/api.md#deleting-a-layer

Soft delete only delete references, and not the actual files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants