
This commit adds a new parameter `runtime` to container create and run APIs so that Zun can support passing multiple runtimes in future. Currently Zun only supports `runc` tool. Change-Id: I2795a4555032e52707e0344daa9dc97ad832650b Partial-Implements: blueprint support-secure-container
39 lines
1020 B
JSON
39 lines
1020 B
JSON
{
|
|
"addresses": null,
|
|
"links": [{
|
|
"href": "http://openstack.example.com/v1/containers/b0694d40-70af-4488-b104-10f66b593347",
|
|
"rel": "self"
|
|
},
|
|
{"href": "http://openstack.example.com/containers/b0694d40-70af-4488-b104-10f66b593347", "rel": "bookmark"}
|
|
],
|
|
"image": "ubuntu",
|
|
"labels": {
|
|
"app": "hello"
|
|
},
|
|
"security_groups": null,
|
|
"image_pull_policy": "always",
|
|
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
|
|
"hostname": null,
|
|
"environment": {
|
|
"foo": "bar"
|
|
},
|
|
"memory": "500M",
|
|
"status": "Creating",
|
|
"workdir": "/home/ubuntu",
|
|
"status_detail": null,
|
|
"host": null,
|
|
"image_driver": "docker",
|
|
"task_state": null,
|
|
"status_reason": null,
|
|
"name": "test",
|
|
"restart_policy": {
|
|
"MaximumRetryCount": "0",
|
|
"Name": "no"
|
|
},
|
|
"ports": null,
|
|
"command": "/bin/sh -c 'echo hello'",
|
|
"cpu": 2.0,
|
|
"interactive": false,
|
|
"runtime": "runc"
|
|
}
|