mirror of https://github.com/docker/compose.git
Add check_duplicate=True when creating network
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
d2cbf33412
commit
f965d2b374
|
@ -79,6 +79,7 @@ class Network(object):
|
||||||
enable_ipv6=self.enable_ipv6,
|
enable_ipv6=self.enable_ipv6,
|
||||||
labels=self._labels,
|
labels=self._labels,
|
||||||
attachable=version_gte(self.client._version, '1.24') or None,
|
attachable=version_gte(self.client._version, '1.24') or None,
|
||||||
|
check_duplicate=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
def remove(self):
|
def remove(self):
|
||||||
|
|
Loading…
Reference in New Issue