mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: So long TP4, so long...
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
fc9912fd00
commit
5175c9a5ea
1 changed files with 6 additions and 19 deletions
|
@ -34,7 +34,6 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
defaultVirtualSwitch = "Virtual Switch"
|
||||
defaultNetworkSpace = "172.16.0.0/12"
|
||||
platformSupported = true
|
||||
windowsMinCPUShares = 1
|
||||
|
@ -114,8 +113,8 @@ func checkSystem() error {
|
|||
if osv.MajorVersion < 10 {
|
||||
return fmt.Errorf("This version of Windows does not support the docker daemon")
|
||||
}
|
||||
if osv.Build < 10586 {
|
||||
return fmt.Errorf("The Windows daemon requires Windows Server 2016 Technical Preview 4, build 10586 or later")
|
||||
if osv.Build < 14300 {
|
||||
return fmt.Errorf("The Windows daemon requires Windows Server 2016 Technical Preview 5 build 14300 or later")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -131,18 +130,6 @@ func configureMaxThreads(config *Config) error {
|
|||
}
|
||||
|
||||
func (daemon *Daemon) initNetworkController(config *Config) (libnetwork.NetworkController, error) {
|
||||
// TODO Windows: Remove this check once TP4 is no longer supported
|
||||
osv := system.GetOSVersion()
|
||||
|
||||
if osv.Build < 14260 {
|
||||
// Set the name of the virtual switch if not specified by -b on daemon start
|
||||
if config.bridgeConfig.Iface == "" {
|
||||
config.bridgeConfig.Iface = defaultVirtualSwitch
|
||||
}
|
||||
logrus.Warnf("Network controller is not supported by the current platform build version")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
netOptions, err := daemon.networkOptions(config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue