mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #44127 from thaJeztah/20.10_backport_image_spec_no_literal
[20.10] Update uses of Image platform fields in OCI image-spec
This commit is contained in:
commit
3bb99735b6
1 changed files with 3 additions and 4 deletions
|
@ -20,10 +20,9 @@ import (
|
|||
// )
|
||||
|
||||
func emptyImageConfig() ([]byte, error) {
|
||||
img := ocispec.Image{
|
||||
Architecture: runtime.GOARCH,
|
||||
OS: runtime.GOOS,
|
||||
}
|
||||
img := ocispec.Image{}
|
||||
img.Architecture = runtime.GOARCH
|
||||
img.OS = runtime.GOOS
|
||||
img.RootFS.Type = "layers"
|
||||
img.Config.WorkingDir = "/"
|
||||
img.Config.Env = []string{"PATH=" + system.DefaultPathEnvUnix}
|
||||
|
|
Loading…
Reference in a new issue