E47B Old image lost on image pull · Issue #46866 · moby/moby · GitHub
[go: up one dir, main page]

Skip to content

Old image lost on image pull #46866

@rumpl

Description

@rumpl

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

No one assigned

    Labels

    area/imagesImage Distributioncontainerd-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.status/0-triage

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0