Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Always run untag when removing docker image #70647
What type of PR is this?
What this PR does / why we need it:
Under certain conditions a docker image can have one tag while
This can be reproduced with the following:
docker pull centos:7 docker tag centos:7 example.com:1234/centos:latest docker push example.com:1234/centos:latest docker rmi example.com:1234/centos:latest docker pull example.com:1234/centos:latest
This ends with an image which has one image tag but multiple repo digests.
docker image inspect centos:7 | jq '. | .RepoTags, .RepoDigests' [ "centos:latest" ] [ "centos@sha256:67dad89757a55bfdfabec8abd0e22f8c7c12a1856514726470228063ed86593b", "example.com:1234/centos@sha256:67dad89757a55bfdfabec8abd0e22f8c7c12a1856514726470228063ed86593b" ]
Which issue(s) this PR fixes
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Nov 6, 2018
[APPROVALNOTIFIER] This PR is APPROVED
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing