Fixes docker.errors.DockerException: 'dns' parameter has no effect on create_container(). It has been moved to start()

This commit is contained in:
Marek Chodor 2015-01-21 13:37:24 +01:00 committed by Matt Clay
parent 724ae97898
commit 35ab6d15df

View file

@ -735,13 +735,9 @@ class DockerManager(object):
'name': self.module.params.get('name'),
'stdin_open': self.module.params.get('stdin_open'),
'tty': self.module.params.get('tty'),
'dns': self.module.params.get('dns'),
'volumes_from': self.module.params.get('volumes_from'),
}
if params['dns'] is not None:
self.ensure_capability('dns')
if params['volumes_from'] is not None:
self.ensure_capability('volumes_from')