Skip to content

containerimage: keep layer labels for exported images#3972

Merged
tonistiigi merged 1 commit intomoby:masterfrom
tonistiigi:fix-layer-labels
Jun 29, 2023
Merged

containerimage: keep layer labels for exported images#3972
tonistiigi merged 1 commit intomoby:masterfrom
tonistiigi:fix-layer-labels

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

When moving blobs to history namespace also move the blobs the labels point to, but don't move actual image layers.

fixes #3893

@vvoland

This was removed in 2be7e54 because I didn't want history objects to keep layers from getting deleted. But I didn't think about the case where image store using the same blob might still need the layers. Now when we move the blobs to separate history namespace, we can leave the layers in labels because if there is no image, then the main manifest will be released.

When moving blobs to history namespace also move the blobs
the labels point to, but don't move actual image layers.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi added this to the v0.12.0 milestone Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manifest is missing gc label for layers

2 participants