Don't set the hostname to the service name with networking.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
67dc90ec0e
commit
3456002aef
3 changed files with 0 additions and 14 deletions
|
|
@ -599,9 +599,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', [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue