summaryrefslogtreecommitdiff
path: root/daemon/container_windows.go
diff options
context:
space:
mode:
authorJohn Starks <jostarks@microsoft.com>2015-09-21 14:39:28 -0700
committerJohn Starks <jostarks@microsoft.com>2015-09-29 12:13:06 -0700
commit7e8c92ad72aecda178c41dbe7e1aa9269be39d5d (patch)
treeac4b65ae725ca6e3a5095b28474e1f7a1b53de27 /daemon/container_windows.go
parent252af0ae2fe8cd68c527b8c5bf6e3dd1c23d8574 (diff)
downloaddocker-7e8c92ad72aecda178c41dbe7e1aa9269be39d5d.tar.gz
Windows: --hostname support
This passes through the container hostname to HCS, which in Windows Server 2016 TP4 will set the container's hostname in the registry before starting it. This will be silently ignored by TP3. Signed-off-by: John Starks <jostarks@microsoft.com>
Diffstat (limited to 'daemon/container_windows.go')
-rw-r--r--daemon/container_windows.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/container_windows.go b/daemon/container_windows.go
index 7d885c3c3d..3697dff225 100644
--- a/daemon/container_windows.go
+++ b/daemon/container_windows.go
@@ -130,6 +130,7 @@ func populateCommand(ctx context.Context, c *Container, env []string) error {
FirstStart: !c.HasBeenStartedBefore,
LayerFolder: layerFolder,
LayerPaths: layerPaths,
+ Hostname: c.Config.Hostname,
}
return nil