From 48ce8bb564c54414de82b254b426d5464afa440f Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 27 Dec 2014 22:05:55 -0500 Subject: [PATCH] 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() --- cloud/docker/docker.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cloud/docker/docker.py b/cloud/docker/docker.py index f71bad42e79..39b9ed61980 100644 --- a/cloud/docker/docker.py +++ b/cloud/docker/docker.py @@ -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):