mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-12 19:07:24 +00:00
docker_container: pass networks to Daemon on container creation (#933)
* Pass networks to Daemon on container creation. * Restore old behavior, and only provide all networks on creation for API 1.44+.
This commit is contained in:
@@ -299,8 +299,11 @@ class EngineDriver(object):
|
||||
def connect_container_to_network(self, client, container_id, network_id, parameters=None):
|
||||
pass
|
||||
|
||||
def create_container_supports_more_than_one_network(self, client):
|
||||
return False
|
||||
|
||||
@abc.abstractmethod
|
||||
def create_container(self, client, container_name, create_parameters):
|
||||
def create_container(self, client, container_name, create_parameters, networks=None):
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user