mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
LCOW: owner and network endpoints
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
8a672ba1aa
commit
e99a633720
1 changed files with 17 additions and 4 deletions
|
@ -296,6 +296,7 @@ func (clnt *client) createLinux(containerID string, checkpoint string, checkpoin
|
||||||
Name: containerID,
|
Name: containerID,
|
||||||
SystemType: "container",
|
SystemType: "container",
|
||||||
ContainerType: "linux",
|
ContainerType: "linux",
|
||||||
|
Owner: defaultOwner,
|
||||||
TerminateOnLastHandleClosed: true,
|
TerminateOnLastHandleClosed: true,
|
||||||
HvRuntime: &hcsshim.HvRuntime{
|
HvRuntime: &hcsshim.HvRuntime{
|
||||||
ImagePath: `c:\program files\lcow`,
|
ImagePath: `c:\program files\lcow`,
|
||||||
|
@ -328,6 +329,18 @@ func (clnt *client) createLinux(containerID string, checkpoint string, checkpoin
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, option := range options {
|
||||||
|
if n, ok := option.(*NetworkEndpointsOption); ok {
|
||||||
|
configuration.EndpointList = n.Endpoints
|
||||||
|
configuration.AllowUnqualifiedDNSQuery = n.AllowUnqualifiedDNSQuery
|
||||||
|
if n.DNSSearchList != nil {
|
||||||
|
configuration.DNSSearchList = strings.Join(n.DNSSearchList, ",")
|
||||||
|
}
|
||||||
|
configuration.NetworkSharedContainerName = n.NetworkSharedContainerID
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
hcsContainer, err := hcsshim.CreateContainer(containerID, configuration)
|
hcsContainer, err := hcsshim.CreateContainer(containerID, configuration)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Reference in a new issue