Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard authored on 2016/10/26 02:30:00... | ... |
@@ -496,6 +496,8 @@ func (daemon *Daemon) setDefaultIsolation() error { |
496 | 496 |
} |
497 | 497 |
if containertypes.Isolation(val).IsProcess() { |
498 | 498 |
if system.IsWindowsClient() { |
499 |
+ // @engine maintainers. This block should not be removed. It partially enforces licensing |
|
500 |
+ // restrictions on Windows. Ping @jhowardmsft if there are concerns or PRs to change this. |
|
499 | 501 |
return fmt.Errorf("Windows client operating systems only support Hyper-V containers") |
500 | 502 |
} |
501 | 503 |
daemon.defaultIsolation = containertypes.Isolation("process") |
... | ... |
@@ -53,6 +53,8 @@ func GetOSVersion() OSVersion { |
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
// IsWindowsClient returns true if the SKU is client |
56 |
+// @engine maintainers - this function should not be removed or modified as it |
|
57 |
+// is used to enforce licensing restrictions on Windows. |
|
56 | 58 |
func IsWindowsClient() bool { |
57 | 59 |
osviex := &osVersionInfoEx{OSVersionInfoSize: 284} |
58 | 60 |
r1, _, err := procGetVersionExW.Call(uintptr(unsafe.Pointer(osviex))) |