Skip to content

Commit ca41b46

Browse files
stepancheggvisor-bot
authored andcommitted
Make daemon.json easier to copy-paste in docker-in-gvisor tutorial
FUTURE_COPYBARA_INTEGRATE_REVIEW=#12140 from stepancheg:patch-3 2883d0e PiperOrigin-RevId: 808212669
1 parent 2c49d9f commit ca41b46

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

g3doc/user_guide/tutorials/docker-in-gvisor.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ network driver and the bridge network driver are tested and supported.
1010

1111
To run docker within gvisor, runsc must be enabled to allow raw sockets. This is
1212
not the default, `--net-raw` must be passed to runsc. To use the following
13-
tutorial, that means having the following configuration in
13+
tutorial, that means having the following runtimes configuration in
1414
`/etc/docker/daemon.json`:
1515

1616
```json
17+
{
18+
"runtimes": {
1719
"runsc": {
1820
"path": "/usr/local/bin/runsc",
1921
"runtimeArgs": [
2022
"--net-raw"
2123
]
2224
}
25+
}
26+
}
2327
```
2428

2529
If you have an existing entry for `runsc`, likely created by `runsc install`,

0 commit comments

Comments
 (0)