Skip to content

Commit

Permalink
Fix OSVersion json key in v1.Config (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr authored Feb 20, 2020
1 parent 4336215 commit ec5ee3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/v1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ import (
// ConfigFile is the configuration file that holds the metadata describing
// how to launch a container. See:
// https://github.com/opencontainers/image-spec/blob/master/config.md
//
// docker_version and os.version are not part of the spec but included
// for backwards compatibility.
type ConfigFile struct {
Architecture string `json:"architecture"`
Author string `json:"author,omitempty"`
Expand All @@ -33,7 +36,7 @@ type ConfigFile struct {
OS string `json:"os"`
RootFS RootFS `json:"rootfs"`
Config Config `json:"config"`
OSVersion string `json:"osversion,omitempty"`
OSVersion string `json:"os.version,omitempty"`
}

// History is one entry of a list recording how this container image was built.
Expand Down

0 comments on commit ec5ee3f

Please sign in to comment.