Merge "Fix docker volumes binds issue"

This commit is contained in:
Jenkins 2014-07-04 23:09:58 +00:00 committed by Gerrit Code Review
commit b7d624e84c

View File

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