Merge pull request #42 from mrunalp/exit_example
Add an example config to demonstrate container exit code
This commit is contained in:
commit
4459532699
1 changed files with 28 additions and 0 deletions
28
testdata/container_exit_test.json
vendored
Normal file
28
testdata/container_exit_test.json
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "podsandbox1-exit-test"
|
||||
},
|
||||
"image": {
|
||||
"image": "docker://mrunalp/exit_test:latest"
|
||||
},
|
||||
"args": [
|
||||
"/exit_test"
|
||||
],
|
||||
"envs": [
|
||||
{
|
||||
"key": "PATH",
|
||||
"value": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
}
|
||||
],
|
||||
"readonly_rootfs": true,
|
||||
"log_path": "container.log",
|
||||
"stdin": false,
|
||||
"stdin_once": false,
|
||||
"tty": false,
|
||||
"linux": {
|
||||
"user": {
|
||||
"uid": 0,
|
||||
"gid": 0
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue