You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Most registry data has interdependencies that are expressed internally but they are expensive to resolve while underlying data is changing.
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
TomasTomecek commentedon Sep 24, 2015
Why is this closed?
dmp42 commentedon Sep 24, 2015
Soft delete have been implemented as part of the API, and more specialized issues have been opened for garbage collection.
tunix commentedon 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 commentedon 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.