Story #5179
Updated by ipanova@redhat.com over 5 years ago
h3. Workflow Removal of docker content unit would allow removal of the content unit in question if no content unit on a higher level references it. If it can be removed, all (otherwise unused) content units on lower levels are deleted recursively. * When a docker image manifest is removed, all its blobs( not referenced by other image manifests) are removed as well. If docker manifest is referenced by tags, or by manifest lists, removal is not possible unless force flag is specified. * When a docker manifest list is removed, all its manifests( not referenced by other manifests lists and not tagged) are removed as well. Furthermore, same story with the blobs. If docker manifest list is referenced by tags, removal is not possible unless force flag is specified. * When a tag is removed , only tag is removed. *Force* removal of docker content unit would allow removal of the content unit in question even if content unit on a higher level references it. * When a docker image manifest is removed, all its blobs( not referenced by other image manifests) are removed as well. Also tags that were referencing this manifest will be removed. This case may leave partial manifest lists. * When a docker manifest list is removed, all its manifests( not referenced by other manifests lists and not tagged) are removed as well. Furthermore, same story with the blobs. Also tags that were referencing this manifest list will be removed. * When a tag is removed , only tag is removed (even in force mode) +Notes+ Force +Question+ When we remove tag with force flag will not do we want to recursively remove content units on lower levels? If we decide to do so, this should be applicable for blobs. Force flag will not be applicable for tags. When removal is not possible because of higher level references, a only in case the manifest/manifest list of _hrefs of those references will be returned along with the user friendly message. has only one tag, otherwise we'd leave behind tags that reference removed manifest/manifest list.