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:
parent
61290febf7
commit
dcdcfcb6af
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user