-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
https://github.com/docker/docker-py/blob/master/docker/utils/utils.py#L646
if network_mode:
host_config['NetworkMode'] = network_mode
elif network_mode is None and compare_version('1.19', version) > 0:
host_config['NetworkMode'] = 'default'
should be:
if network_mode:
host_config['NetworkMode'] = network_mode
elif network_mode is None and compare_version('1.19', version) > 0:
host_config['NetworkMode'] = 'bridge'
The value of "default" gives an error like the following:
FAILED! => {"changed": true, "failed": true, "msg": "Docker API Error: Cannot start container 400145f2e47c2f686abf1513d9d0c49b1fce1e6c8c9f2303c24c61085d5b094c: invalid network mode: default"}
Running on Mac OS 10.11.3
ansible --version
ansible 2.0.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
Host is
Ubuntu 15.10
Python 2.7.10
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.5.1
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.5.1
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64