-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add oc image append
which adds layers to a schema1/2 image
#20027
Changes from all commits
3dd13d9
fb2ae7f
54636b8
da471b8
80adc18
1346deb
2721b3b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package docker10 | ||
|
||
// Convert_DockerV1CompatibilityImage_to_DockerImageConfig takes a Docker registry digest | ||
// (schema 2.1) and converts it to the external API version of Image. | ||
func Convert_DockerV1CompatibilityImage_to_DockerImageConfig(in *DockerV1CompatibilityImage, out *DockerImageConfig) error { | ||
*out = DockerImageConfig{ | ||
ID: in.ID, | ||
Parent: in.Parent, | ||
Comment: in.Comment, | ||
Created: in.Created, | ||
Container: in.Container, | ||
DockerVersion: in.DockerVersion, | ||
Author: in.Author, | ||
Architecture: in.Architecture, | ||
Size: in.Size, | ||
OS: "linux", | ||
ContainerConfig: in.ContainerConfig, | ||
} | ||
if in.Config != nil { | ||
out.Config = &DockerConfig{} | ||
*out.Config = *in.Config | ||
} | ||
return nil | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
// Package docker10 is the docker10 version of the API. | ||
// Package docker10 provides types used by docker/distribution and moby/moby. | ||
// This package takes no dependency on external types. | ||
package docker10 |
This file was deleted.
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.
i feel like this is going to bite us as soon as we try to do multiarch... do we not have the image's architecture info anywhere? should this at least be based on runtime.GOARCH like we do on manifestlist conversion?
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.
If you don't have this data, the only thing it supports was linux (docker schema changed to allow this, but older images had no metadata).