docs: added lifecycle example to JSON Jobs API docs
This commit is contained in:
parent
4ae967ef96
commit
6092eb9f7d
|
@ -407,6 +407,22 @@ $ curl \
|
|||
"Mode": "delay"
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Config": {
|
||||
"command": "env",
|
||||
"image": "alpine"
|
||||
},
|
||||
"Driver": "docker",
|
||||
"Lifecycle": {
|
||||
"Hook": "prestart",
|
||||
"Sidecar": false
|
||||
},
|
||||
"Name": "init",
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"MemoryMB": 300,
|
||||
},
|
||||
},
|
||||
{
|
||||
"Name": "redis",
|
||||
"Driver": "docker",
|
||||
|
|
Loading…
Reference in a new issue