1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

Windows: Hook up user supplied MAC

Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: a207ce6ae4e76a69c543cee7e10cb88bbc2c2460
Component: engine
This commit is contained in:
John Howard
2015-07-16 13:20:14 -07:00
parent c4cef0431e
commit 78ef36e1cb

View File

@@ -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,
}
}