Fix hostname support for compose file

Pass the hostname from ContainerSpec to the actual container.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: d0117238fa74ea75cdec7b9205620c59bafc4508
Component: engine
This commit is contained in:
Vincent Demeester
2016-11-02 12:50:36 +01:00
committed by Daniel Nephin
parent 15d5c8d4af
commit 38597e8d2b

View File

@ -143,6 +143,7 @@ func (c *containerConfig) config() *enginecontainer.Config {
User: c.spec().User,
Hostname: c.spec().Hostname,
Env: c.spec().Env,
Hostname: c.spec().Hostname,
WorkingDir: c.spec().Dir,
Image: c.image(),
Volumes: c.volumes(),