-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
area/imagesImage DistributionImage Distributioncontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.status/0-triage
Description
Description
When a docker pull
updates an image we are losing the old image.
Reproduce
$ docker pull debian:oldstable-20200514
$ docker tag debian:oldstable-20200514 debian:stable
$ docker image rm -f debian:oldstable-20200514
$ docker pull debian:stable
$ docker images
With graph drivers the last command shows
REPOSITORY TAG IMAGE ID CREATED SIZE
debian stable c505deff3653 8 days ago 139MB
debian <none> 476d4a705c2f 3 years ago 95.8MB
And with containerd we end up with
REPOSITORY TAG IMAGE ID CREATED SIZE
debian stable ed69ce2733ba 8 days ago 205MB
The old image was lost.
Expected behavior
After the second pull the old image should still be present
docker version
master
docker info
master
Additional Info
No response
Metadata
Metadata
Assignees
Labels
area/imagesImage DistributionImage Distributioncontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.status/0-triage
Type
Projects
Status
Done