daemon: remove use of deprecated system.GetOSVersion()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-11-25 13:39:50 +01:00
parent 81f9edc7b0
commit 044b74e33b
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -223,8 +223,7 @@ func verifyDaemonSettings(config *config.Config) error {
func checkSystem() error {
// Validate the OS version. Note that dockerd.exe must be manifested for this
// call to return the correct version.
osv := system.GetOSVersion()
if osv.MajorVersion < 10 {
if osversion.Get().MajorVersion < 10 {
return fmt.Errorf("This version of Windows does not support the docker daemon")
}
if osversion.Build() < osversion.RS1 {