浏览代码

daemon: remove use of deprecated system.GetOSVersion()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 年之前
父节点
当前提交
044b74e33b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      daemon/daemon_windows.go

+ 1 - 2
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 {