Make created networks attachable for file format >=2.1

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-12-05 16:11:21 -08:00
parent fb165d9c15
commit e736151ee4
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import logging
from docker.errors import NotFound
from docker.types import IPAMConfig
from docker.types import IPAMPool
from docker.utils import version_gte
from .config import ConfigurationError
@ -72,6 +73,7 @@ class Network(object):
internal=self.internal,
enable_ipv6=self.enable_ipv6,
labels=self.labels,
attachable=version_gte(self.client._version, '1.24') or None
)
def remove(self):