diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2019-11-25 13:39:50 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2019-11-25 13:39:50 +0100 |
commit | 044b74e33bc499e360d1793f4c0d5975032c2d6d (patch) | |
tree | 01178cd2a40728a48660520b4bc60cab6364fe8a | |
parent | 81f9edc7b0efce763ad89a7b62f0546e5a12aff6 (diff) | |
download | docker-044b74e33bc499e360d1793f4c0d5975032c2d6d.tar.gz |
daemon: remove use of deprecated system.GetOSVersion()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
-rw-r--r-- | daemon/daemon_windows.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/daemon_windows.go b/daemon/daemon_windows.go index 85a1d43ed5..4619fdb0e8 100644 --- a/daemon/daemon_windows.go +++ b/daemon/daemon_windows.go @@ -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 { |