mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
194eaa5c0f
These fields are needed to specify the exact version of Windows that an image can run on. They may be useful for other platforms in the future. This also changes image.store.Create to validate that the loaded image is supported on the current machine. This change affects Linux as well, since it now validates the architecture and OS fields. Signed-off-by: John Starks <jostarks@microsoft.com>
13 lines
216 B
Go
13 lines
216 B
Go
// +build !windows
|
|
|
|
package image
|
|
|
|
func getOSVersion() string {
|
|
// For Linux, images do not specify a version.
|
|
return ""
|
|
}
|
|
|
|
func hasOSFeature(_ string) bool {
|
|
// Linux currently has no OS features
|
|
return false
|
|
}
|