diff --git a/src/compose/service.coffee b/src/compose/service.coffee index 8495b3fd..f01eb40f 100644 --- a/src/compose/service.coffee +++ b/src/compose/service.coffee @@ -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