From 2883d0ebd97759e841b9251c4135668d93222797 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Wed, 17 Sep 2025 05:49:19 +0100 Subject: [PATCH] Make daemon.json easier to copy-paste in docker-in-gvisor tutorial --- g3doc/user_guide/tutorials/docker-in-gvisor.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/g3doc/user_guide/tutorials/docker-in-gvisor.md b/g3doc/user_guide/tutorials/docker-in-gvisor.md index 8c14c1d616..e9b52c0f67 100644 --- a/g3doc/user_guide/tutorials/docker-in-gvisor.md +++ b/g3doc/user_guide/tutorials/docker-in-gvisor.md @@ -10,16 +10,20 @@ network driver and the bridge network driver are tested and supported. To run docker within gvisor, runsc must be enabled to allow raw sockets. This is not the default, `--net-raw` must be passed to runsc. To use the following -tutorial, that means having the following configuration in +tutorial, that means having the following runtimes configuration in `/etc/docker/daemon.json`: ```json +{ + "runtimes": { "runsc": { "path": "/usr/local/bin/runsc", "runtimeArgs": [ "--net-raw" ] } + } +} ``` If you have an existing entry for `runsc`, likely created by `runsc install`,