Skip to content

propose intelligent deletion management approach #210

Closed

Description

@stevvooe

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.

Activity

  1. added this to the milestone on Feb 26, 2015
  2. removed this from the milestone on Mar 18, 2015
  3. TomasTomecek commented on Sep 24, 2015

    @TomasTomecek

    Why is this closed?

  4. dmp42 commented on Sep 24, 2015

    @dmp42
    Contributor

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

  5. tunix commented on Jan 25, 2016

    @tunix

    @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?

  6. dmp42 commented on Jan 25, 2016

    @dmp42
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions