Don't set network mode when none is specified
Setting a value overrides the new default network option. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
37ee6b0c19
commit
c22cc02df5
3 changed files with 14 additions and 2 deletions
|
|
@ -188,7 +188,7 @@ class Project(object):
|
|||
del service_dict['net']
|
||||
|
||||
else:
|
||||
net = 'bridge'
|
||||
net = None
|
||||
|
||||
return net
|
||||
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ class Service(object):
|
|||
|
||||
def _get_net(self):
|
||||
if not self.net:
|
||||
return "bridge"
|
||||
return None
|
||||
|
||||
if isinstance(self.net, Service):
|
||||
containers = self.net.containers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue