zun/api-ref/source/samples/container-create-req.json
Hongbin Lu 663f4840ea Add 'tty' property to container
Change-Id: I166c87b24eb0384ba32a3c47030d452d0b5a5ee2
2019-07-07 15:50:24 +00:00

58 lines
1.1 KiB
JSON

{
"environment":{
"foo": "bar"
},
"labels":{
"app": "hello"
},
"image": "ubuntu",
"command": [
"/bin/sh",
"-c",
"'echo hello'"
],
"name": "test",
"cpu": 2,
"memory": 500,
"workdir": "/home/ubuntu",
"restart_policy":{
"Name": "no",
"MaximumRetryCount": 0
},
"interactive": false,
"tty": false,
"image_driver": "docker",
"security_groups": [
"default"
],
"nets": [
{
"v4-fixed-ip": "",
"network": "",
"v6-fixed-ip": "",
"port": "890699a9-4690-4bd6-8b70-3a9c1be77ecb"
}
],
"runtime": "runc",
"hostname": "testhost",
"auto_remove": false,
"auto_heal": false,
"availability_zone": "nova",
"hints": {
"foo": "bar"
},
"mounts": [
{
"source": "myvol",
"destination": "/data"
}
],
"privileged": false,
"healthcheck": {
"cmd": "stat /etc/passwd || exit 1",
"interval": 3,
"retries": 2,
"timeout": 5
}
}