Add check_duplicate=True when creating network

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-10-16 13:54:30 -07:00 committed by Joffrey F
parent d2cbf33412
commit f965d2b374
1 changed files with 1 additions and 0 deletions

View File

@ -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):