Merge pull request #2334 from dnephin/dont_set_hostname

Don't set the hostname to the service name with networking.
This commit is contained in:
Aanand Prasad 2015-11-10 17:34:02 +00:00
commit 917b885a44
3 changed files with 0 additions and 14 deletions

View file

@ -601,9 +601,6 @@ class Service(object):
container_options['hostname'] = parts[0]
container_options['domainname'] = parts[2]
if 'hostname' not in container_options and self.use_networking:
container_options['hostname'] = self.name
if 'ports' in container_options or 'expose' in self.options:
ports = []
all_ports = container_options.get('ports', []) + self.options.get('expose', [])