
Zun already had this option before, but had to remove due to the Conflict Exception (relate to sandbox). At this time, we made sandbox optional. Therefore, if use_sandbox option is False, we can use hostname option. If it is True, raise the Exception to let user know. This option will help us to implement the blueprint internal-dns-resolution. Change-Id: I2f8826fc66e94c0d4452ff32e3bc17700ef6b668 Closes-Bug: #1716849
33 lines
682 B
JSON
33 lines
682 B
JSON
{
|
|
"environment":{
|
|
"foo": "bar"
|
|
},
|
|
"labels":{
|
|
"app": "hello"
|
|
},
|
|
"image": "ubuntu",
|
|
"command": "/bin/sh -c 'echo hello'",
|
|
"name": "test",
|
|
"cpu": 2,
|
|
"memory": 500,
|
|
"workdir": "/home/ubuntu",
|
|
"image_pull_policy": "always",
|
|
"restart_policy":{
|
|
"Name": "no",
|
|
"MaximumRetryCount": 0
|
|
},
|
|
"interactive": "False",
|
|
"image_driver": "docker",
|
|
"security_groups": null,
|
|
"nets": [
|
|
{
|
|
"v4-fixed-ip": "",
|
|
"network": "",
|
|
"v6-fixed-ip": "",
|
|
"port": "890699a9-4690-4bd6-8b70-3a9c1be77ecb"
|
|
}
|
|
],
|
|
"runtime": "runc",
|
|
"hostname": "testhost"
|
|
}
|