mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Add comment re client containers
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
11cd64f0dc
commit
87ab13add4
2 changed files with 4 additions and 0 deletions
|
@ -496,6 +496,8 @@ func (daemon *Daemon) setDefaultIsolation() error {
|
||||||
}
|
}
|
||||||
if containertypes.Isolation(val).IsProcess() {
|
if containertypes.Isolation(val).IsProcess() {
|
||||||
if system.IsWindowsClient() {
|
if system.IsWindowsClient() {
|
||||||
|
// @engine maintainers. This block should not be removed. It partially enforces licensing
|
||||||
|
// restrictions on Windows. Ping @jhowardmsft if there are concerns or PRs to change this.
|
||||||
return fmt.Errorf("Windows client operating systems only support Hyper-V containers")
|
return fmt.Errorf("Windows client operating systems only support Hyper-V containers")
|
||||||
}
|
}
|
||||||
daemon.defaultIsolation = containertypes.Isolation("process")
|
daemon.defaultIsolation = containertypes.Isolation("process")
|
||||||
|
|
|
@ -53,6 +53,8 @@ func GetOSVersion() OSVersion {
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsWindowsClient returns true if the SKU is client
|
// IsWindowsClient returns true if the SKU is client
|
||||||
|
// @engine maintainers - this function should not be removed or modified as it
|
||||||
|
// is used to enforce licensing restrictions on Windows.
|
||||||
func IsWindowsClient() bool {
|
func IsWindowsClient() bool {
|
||||||
osviex := &osVersionInfoEx{OSVersionInfoSize: 284}
|
osviex := &osVersionInfoEx{OSVersionInfoSize: 284}
|
||||||
r1, _, err := procGetVersionExW.Call(uintptr(unsafe.Pointer(osviex)))
|
r1, _, err := procGetVersionExW.Call(uintptr(unsafe.Pointer(osviex)))
|
||||||
|
|
Loading…
Reference in a new issue