Fix docker volumes binds issue

Without the fix, the volumes will not be attached after the container
started.

Closes-Bug: #1322205

Change-Id: Ie8eff402e8714f3c5d478dbc9fc02b43a377dccd
This commit is contained in:
JUNJIE NAN 2014-05-22 22:56:31 +08:00
parent 61290febf7
commit dcdcfcb6af

View File

@ -273,6 +273,9 @@ class DockerContainer(resource.Resource):
kwargs = {}
if self.properties[self.PRIVILEGED]:
kwargs[self.PRIVILEGED] = True
if self.properties[self.VOLUMES]:
kwargs['binds'] = self.properties[self.VOLUMES]
client.start(container_id, **kwargs)
return container_id