Don't pass volumes_from to create_container
Don't pass the volumes_from argument to the Docker create_container method. If the volumes_from argument is passed to the create_container method, Docker raises the following exception: docker.errors.DockerException: 'volumes_from' parameter has no effect on create_container(). It has been moved to start()
This commit is contained in:
parent
f9574cc318
commit
48ce8bb564
1 changed files with 0 additions and 4 deletions
|
@ -727,15 +727,11 @@ class DockerManager(object):
|
|||
'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')
|
||||
|
||||
extra_params = {}
|
||||
if self.module.params.get('insecure_registry'):
|
||||
if self.ensure_capability('insecure_registry', fail=False):
|
||||
|
|
Loading…
Reference in a new issue