Skip to content

Commit 10dc96b

Browse files
committed
README.md: adjust capabilities section in config.json example
The format of the capabilities section in config.json was changed in the runtime spec 1.0.0.rc5 (pulled in through PR opencontainers#1370). Update the example in README.md correspondingly. Also fix a small typo (though -> through). Signed-off-by: Tobias Klauser <[email protected]>
1 parent 6ca8b74 commit 10dc96b

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

README.md

+28-6
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,33 @@ Your process field in the `config.json` should look like this below with `"termi
145145
"TERM=xterm"
146146
],
147147
"cwd": "/",
148-
"capabilities": [
149-
"CAP_AUDIT_WRITE",
150-
"CAP_KILL",
151-
"CAP_NET_BIND_SERVICE"
152-
],
148+
"capabilities": {
149+
"bounding": [
150+
"CAP_AUDIT_WRITE",
151+
"CAP_KILL",
152+
"CAP_NET_BIND_SERVICE"
153+
],
154+
"effective": [
155+
"CAP_AUDIT_WRITE",
156+
"CAP_KILL",
157+
"CAP_NET_BIND_SERVICE"
158+
],
159+
"inheritable": [
160+
"CAP_AUDIT_WRITE",
161+
"CAP_KILL",
162+
"CAP_NET_BIND_SERVICE"
163+
],
164+
"permitted": [
165+
"CAP_AUDIT_WRITE",
166+
"CAP_KILL",
167+
"CAP_NET_BIND_SERVICE"
168+
],
169+
"ambient": [
170+
"CAP_AUDIT_WRITE",
171+
"CAP_KILL",
172+
"CAP_NET_BIND_SERVICE"
173+
]
174+
},
153175
"rlimits": [
154176
{
155177
"type": "RLIMIT_NOFILE",
@@ -161,7 +183,7 @@ Your process field in the `config.json` should look like this below with `"termi
161183
},
162184
```
163185

164-
Now we can go though the lifecycle operations in your shell.
186+
Now we can go through the lifecycle operations in your shell.
165187

166188

167189
```bash

0 commit comments

Comments
 (0)