Browse code

Fix hostname support for compose file

Pass the hostname from ContainerSpec to the actual container.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Vincent Demeester authored on 2016/11/02 20:50:36
Showing 1 changed files
... ...
@@ -143,6 +143,7 @@ func (c *containerConfig) config() *enginecontainer.Config {
143 143
 		User:        c.spec().User,
144 144
 		Hostname:    c.spec().Hostname,
145 145
 		Env:         c.spec().Env,
146
+		Hostname:    c.spec().Hostname,
146 147
 		WorkingDir:  c.spec().Dir,
147 148
 		Image:       c.image(),
148 149
 		Volumes:     c.volumes(),