Merge pull request #14688 from Microsoft/10662-hookupmac
Windows: Hook up user supplied MAC Upstream-commit: 5dda570d508475d59a42633ee67efa22f87fe52b Component: engine
This commit is contained in:
@ -77,9 +77,8 @@ func populateCommand(c *Container, env []string) error {
|
||||
case "none":
|
||||
case "default", "": // empty string to support existing containers
|
||||
if !c.Config.NetworkDisabled {
|
||||
network := c.NetworkSettings
|
||||
en.Interface = &execdriver.NetworkInterface{
|
||||
MacAddress: network.MacAddress,
|
||||
MacAddress: c.Config.MacAddress,
|
||||
Bridge: c.daemon.config.Bridge.VirtualSwitchName,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user