1{ 2 "ociVersion": "1.0.0", 3 4 "root": { 5 "path": "rootfs", 6 "readonly": true 7 }, 8 9 "process": { 10 "terminal": false, 11 "consoleSize": { 12 "height":6667, 13 "width":6668 14 }, 15 16 "user": { 17 "uid": 14, 18 "gid": 14, 19 "additionalGids": [59, 81] 20 }, 21 22 "args": [ 23 "/tmp/verify.sh" 24 ], 25 26 "env": [ 27 "FOO=BAR", 28 "WITHSPACES=FOO BAR", 29 "WITHSHELLCHARS=$ASDF \\\"asdf asdf\\\" !", 30 "WITHCONTROLCHARS=\\123\\125\\010\\020", 31 "TERM=xterm" 32 ], 33 34 "cwd": "/tmp/src", 35 36 "rlimits": [ 37 { 38 "type": "RLIMIT_NOFILE", 39 "hard": 1020, 40 "soft": 1020 41 } 42 ] 43 }, 44 45 "mounts": [ 46 { 47 "destination": "/tmp/src", 48 "source": "src", 49 "options": ["ro"] 50 }, 51 52 { 53 "destination": "/tmp/verify.sh", 54 "source": "verify.sh", 55 "options": ["ro"] 56 }, 57 58 { 59 "destination": "/proc", 60 "type": "proc", 61 "source": "proc" 62 }, 63 { 64 "destination": "/dev", 65 "type": "tmpfs", 66 "source": "tmpfs", 67 "options": [ 68 "mode=777" 69 ] 70 }, 71 { 72 "destination": "/dev/pts", 73 "type": "devpts", 74 "source": "devpts", 75 "options": [ 76 "mode=777" 77 ] 78 }, 79 { 80 "destination": "/dev/shm", 81 "type": "tmpfs", 82 "source": "shm", 83 "options": [ 84 "mode=777" 85 ] 86 }, 87 { 88 "destination": "/dev/mqueue", 89 "type": "mqueue", 90 "source": "mqueue", 91 "options": [ 92 "mode=777" 93 ] 94 }, 95 { 96 "destination": "/sys", 97 "type": "sysfs", 98 "source": "sysfs", 99 "options": [ 100 "mode=777" 101 ] 102 }, 103 { 104 "destination": "/sys/fs/cgroup", 105 "type": "cgroup", 106 "source": "cgroup", 107 "options": [ 108 "mode=777" 109 ] 110 } 111 ], 112 113 "hooks": {}, 114 115 "linux": { 116 "resources": { 117 "devices": [ 118 { 119 "allow": false, 120 "access": "rwm" 121 } 122 ] 123 }, 124 "namespaces": [ 125 { 126 "type": "pid" 127 }, 128 { 129 "type": "ipc" 130 }, 131 { 132 "type": "mount" 133 } 134 ] 135 }, 136 137 "annotations": { 138 "com.example.key1": "value1", 139 "com.example.key2": "value2" 140 } 141} 142