diff options
author | John Starks <jostarks@microsoft.com> | 2015-09-21 14:39:28 -0700 |
---|---|---|
committer | John Starks <jostarks@microsoft.com> | 2015-09-29 12:13:06 -0700 |
commit | 7e8c92ad72aecda178c41dbe7e1aa9269be39d5d (patch) | |
tree | ac4b65ae725ca6e3a5095b28474e1f7a1b53de27 /daemon/container_windows.go | |
parent | 252af0ae2fe8cd68c527b8c5bf6e3dd1c23d8574 (diff) | |
download | docker-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.go | 1 |
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 |