Merge pull request #1886 from mnowster/create-host-config-needs-version
Stop using deprecated `create_host_config` from utils
This commit is contained in:
commit
aab688d27e
4 changed files with 43 additions and 19 deletions
|
|
@ -11,7 +11,6 @@ from operator import attrgetter
|
|||
import enum
|
||||
import six
|
||||
from docker.errors import APIError
|
||||
from docker.utils import create_host_config
|
||||
from docker.utils import LogConfig
|
||||
from docker.utils.ports import build_port_bindings
|
||||
from docker.utils.ports import split_port
|
||||
|
|
@ -679,7 +678,7 @@ class Service(object):
|
|||
|
||||
devices = options.get('devices', None)
|
||||
|
||||
return create_host_config(
|
||||
return self.client.create_host_config(
|
||||
links=self._get_links(link_to_self=one_off),
|
||||
port_bindings=port_bindings,
|
||||
binds=options.get('binds'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue