Actually send the hostname as part of container config

Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2018-01-23 02:07:39 -03:00
parent 534f7d13cb
commit 8956fc1e5a

View File

@ -554,6 +554,8 @@ module.exports = class Service
}
if @init
conf.HostConfig.Init = true
if !_.isEmpty(@hostname)
conf.Hostname = @hostname
return conf
# TODO: when we support network configuration properly, return endpointConfig: conf