Always use fq names for dest image#959
Conversation
This has nothing to do with how skopeo works. Skopeo just uses whatever atomic passes in and this patch is OK to me since skopeo can't be fixed for this case since, again, it just accepts whatever atomic passes. |
aweiteka
left a comment
There was a problem hiding this comment.
Since we're already interpreting for the user a FQDN I think this clarifies for the user what was actually pulled.
|
Didn't work so great: |
|
@runcom What you said is not quite true. Try: Make sure the image is not already present. |
|
@miabbott nice catch, fixed now. |
|
Works for me. 👍 |
This is https://github.com/containers/image/blob/master/docker/daemon/daemon_dest.go#L217 , which was done for consistency with how Also, per the analysis in containers/image#72 , using a fully-qualified name when tagging an image (i.e. If this is all as expected, However the wording in
seems to suggest that using the fully-qualified name is actually undesirable for some reason. Has projectatomic/docker changed how it processes references since Nov 2016, or is there another reason why containers/image should not be making the references fully qualified? |
Bugzilla 1437447 has brought up an issue where if a user runs: atomic pull rhel7 The resulting image in dockerd is docker.io/rhel7. The Atomic CLI does tell skopeo the right information" /usr/bin/skopeo --debug --policy=/etc/containers/policy.json --debug copy --remove-signatures docker://registry.access.redhat.com/rhel7:latest docker-daemon:rhel7:latest But somewhere along the line, we think in skopeo, docker.io is prepending to the destination image name. One way to resolve this is to always use the fq name for the destination and not what the user wanted. This is a change in the default behaviour of atomic and I am not sure I am confortable with this. But given that we have several folks on PTO or travelling, I'm putting this PR together so that if we decide this is the proper route for fixing, it will be done. Closes: #959 Approved by: rhatdan
|
@rh-atomic-bot retry |
Bugzilla 1437447 has brought up an issue where if a user runs: atomic pull rhel7 The resulting image in dockerd is docker.io/rhel7. The Atomic CLI does tell skopeo the right information" /usr/bin/skopeo --debug --policy=/etc/containers/policy.json --debug copy --remove-signatures docker://registry.access.redhat.com/rhel7:latest docker-daemon:rhel7:latest But somewhere along the line, we think in skopeo, docker.io is prepending to the destination image name. One way to resolve this is to always use the fq name for the destination and not what the user wanted. This is a change in the default behaviour of atomic and I am not sure I am confortable with this. But given that we have several folks on PTO or travelling, I'm putting this PR together so that if we decide this is the proper route for fixing, it will be done. Closes: #959 Approved by: rhatdan
|
@rh-atomic-bot retry |
1 similar comment
|
@rh-atomic-bot retry |
Bugzilla 1437447 has brought up an issue where if a user runs: atomic pull rhel7 The resulting image in dockerd is docker.io/rhel7. The Atomic CLI does tell skopeo the right information" /usr/bin/skopeo --debug --policy=/etc/containers/policy.json --debug copy --remove-signatures docker://registry.access.redhat.com/rhel7:latest docker-daemon:rhel7:latest But somewhere along the line, we think in skopeo, docker.io is prepending to the destination image name. One way to resolve this is to always use the fq name for the destination and not what the user wanted. This is a change in the default behaviour of atomic and I am not sure I am confortable with this. But given that we have several folks on PTO or travelling, I'm putting this PR together so that if we decide this is the proper route for fixing, it will be done. Closes: #959 Approved by: rhatdan
|
💔 Test failed - status-redhatci |
Bugzilla 1437447 has brought up an issue where if a user runs: atomic pull rhel7 The resulting image in dockerd is docker.io/rhel7. The Atomic CLI does tell skopeo the right information" /usr/bin/skopeo --debug --policy=/etc/containers/policy.json --debug copy --remove-signatures docker://registry.access.redhat.com/rhel7:latest docker-daemon:rhel7:latest But somewhere along the line, we think in skopeo, docker.io is prepending to the destination image name. One way to resolve this is to always use the fq name for the destination and not what the user wanted. This is a change in the default behaviour of atomic and I am not sure I am confortable with this. But given that we have several folks on PTO or travelling, I'm putting this PR together so that if we decide this is the proper route for fixing, it will be done.
|
☀️ Test successful - status-redhatci |
Bugzilla 1437447 has brought up an issue where if a user runs:
atomic pull rhel7
The resulting image in dockerd is docker.io/rhel7. The Atomic CLI
does tell skopeo the right information"
/usr/bin/skopeo --debug --policy=/etc/containers/policy.json --debug copy --remove-signatures docker://registry.access.redhat.com/rhel7:latest docker-daemon:rhel7:latest
But somewhere along the line, we think in skopeo, docker.io is prepending to the destination
image name. One way to resolve this is to always use the fq name for the destination and not
what the user wanted.
This is a change in the default behaviour of atomic and I am not sure I am confortable with this. But
given that we have several folks on PTO or travelling, I'm putting this PR together so that
if we decide this is the proper route for fixing, it will be done.