-
Notifications
You must be signed in to change notification settings - Fork 395
Finish docker-daemon: #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Now also fixes #72 , making this PR ready for review. |
We now rely on types.Image.UpdatedImage and copy.Image to do the necessary conversions. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This requires renaming the image struct to dockerImage to avoid a naming conflict with containers/image/image . Signed-off-by: Miloslav Trmač <mitr@redhat.com>
1adca02 to
489aff5
Compare
Allow either a !NameOnly named reference, or a sha256:hex digest. Both forms can be used for an ImageSource; ImageDestination accepts only a name:tag value. Because the sha256:hex reference values make it impossible to create a reasonable policy hierarchy, only support a trivial namespace with a single per-transport policy. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
…load) This makes the tagging behavior consistent with (docker pull) for projectatomic/docker, and does not change behavior for docker/docker. See the added comment, and containers#72 , for more explanation. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
489aff5 to
49feaef
Compare
| // Based on github.com/docker/docker/image/image.go | ||
| // MOST CONTENT OMITTED AS UNNECESSARY | ||
| type image struct { | ||
| type dockerImage struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we plan to have other *Image types? just image was nice to have. Not a blocker, feel free to skip this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only necessary to make it possible to import containers/image/image, as 29838ec says.
Improve manifest digest handling
This fixes #143 , by deciding on a reference format and implementing it.
Allow either a
!NameOnlynamed reference, or asha256:hex digest. Both forms can be used for anImageSource;ImageDestinationaccepts only a name:tag value.Because the
sha256:hex reference values make it impossible to create a reasonable policy hierarchy, only support a trivial namespace with a single per-transport policy.This does not yet deal with the way projectatomic/docker/reference breaks the normalization (#72).