Skip to content

c8d/pull: Keep the replaced image as dangling#48374

Merged
thaJeztah merged 2 commits intomoby:masterfrom
vvoland:c8d-pull-keep-old
Aug 26, 2024
Merged

c8d/pull: Keep the replaced image as dangling#48374
thaJeztah merged 2 commits intomoby:masterfrom
vvoland:c8d-pull-keep-old

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Aug 26, 2024

With graphdrivers, the old image was still kept as a dangling image. Keep the same behavior with containerd.

- How to verify it
TestImagePullKeepOldAsDangling

- Description for the changelog

containerd image store: Fix the previous image not being persisted as dangling after `docker pull`.

- A picture of a cute animal (not mandatory but encouraged)

@vvoland vvoland added area/images Image Distribution kind/bugfix PR's that fix bugs containerd-integration Issues and PRs related to containerd integration process/cherry-pick/27.2 labels Aug 26, 2024
@vvoland vvoland added this to the 28.0.0 milestone Aug 26, 2024
@vvoland vvoland requested review from laurazard and thaJeztah August 26, 2024 12:51
@vvoland vvoland self-assigned this Aug 26, 2024
@vvoland vvoland force-pushed the c8d-pull-keep-old branch 2 times, most recently from 5f89c3e to 37dc7ef Compare August 26, 2024 13:22
With graphdrivers, the old image was still kept as a dangling image.
Keep the same behavior with containerd.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland force-pushed the c8d-pull-keep-old branch from 37dc7ef to db40a61 Compare August 26, 2024 13:56
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still LGTM

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

Labels

area/images Image Distribution containerd-integration Issues and PRs related to containerd integration kind/bugfix PR's that fix bugs process/cherry-picked status/4-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Old image lost on image pull

4 participants