-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
oc image append
which adds layers to a schema1/2 image
This command can take zero or more gzipped layer tars (in Docker layer format) and append them to an existing image or a scratch image and then push the new image to a registry. Layers in the existing image are pushed as well. The caller can mutate the provided config as it goes.
- Loading branch information
1 parent
fc990aa
commit 6bb87b3
Showing
15 changed files
with
1,642 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.