Support to provide 'image_driver' during container create
This patch adds the functionality to support image_driver during container create/run. If user provides a valid image_driver, that is defined in configuration he/she will be allowed to create the container otherwise the request will fail. This patch also add image_driver field in db, so that user can inspect which image driver he/she used during the container create. Partially-Implements: BP allow-specify-image-driver Change-Id: Id2299a613ed414b2df67c103fe6cda0397ab791d
This commit is contained in:
parent
e1e83d3ba6
commit
6f4cfa1be0
@ -53,7 +53,8 @@ def container_data(**kwargs):
|
||||
'image': 'cirros:latest',
|
||||
'command': 'sleep 10000',
|
||||
'memory': '100',
|
||||
'environment': {}
|
||||
'environment': {},
|
||||
'image_driver': 'docker'
|
||||
}
|
||||
|
||||
data.update(kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user