mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Adding support for DNS search on RS1
Signed-off-by: Sandeep Bansal <sabansal@microsoft.com>
This commit is contained in:
parent
eb8abc9598
commit
b8e8dcd6e0
1 changed files with 0 additions and 7 deletions
|
@ -9,7 +9,6 @@ import (
|
||||||
"github.com/docker/docker/container"
|
"github.com/docker/docker/container"
|
||||||
"github.com/docker/docker/layer"
|
"github.com/docker/docker/layer"
|
||||||
"github.com/docker/docker/libcontainerd"
|
"github.com/docker/docker/libcontainerd"
|
||||||
"github.com/docker/docker/pkg/system"
|
|
||||||
"golang.org/x/sys/windows/registry"
|
"golang.org/x/sys/windows/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -32,12 +31,6 @@ func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Contain
|
||||||
}
|
}
|
||||||
|
|
||||||
dnsSearch := daemon.getDNSSearchSettings(container)
|
dnsSearch := daemon.getDNSSearchSettings(container)
|
||||||
if dnsSearch != nil {
|
|
||||||
osv := system.GetOSVersion()
|
|
||||||
if osv.Build < 14997 {
|
|
||||||
return nil, fmt.Errorf("dns-search option is not supported on the current platform")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the layer folder of the layer options
|
// Generate the layer folder of the layer options
|
||||||
layerOpts := &libcontainerd.LayerOption{}
|
layerOpts := &libcontainerd.LayerOption{}
|
||||||
|
|
Loading…
Add table
Reference in a new issue