Add docs for disabling external networking.

This is a useful feature for truly untrusted code.
This commit is contained in:
Ian Gudger
2019-04-02 18:08:58 -07:00
committed by Adin Scannell
parent 811de2bbe5
commit 9549ed31f9
+22
View File
@@ -33,4 +33,26 @@ Add the following `runtimeArgs` to your Docker configuration
}
```
## Disabling external networking
To completely isolate the host and network from the sandbox, external
networking can be disabled. The sandbox will still contain a loopback provided
by netstack.
Add the following `runtimeArgs` to your Docker configuration
(`/etc/docker/daemon.json`) and restart the Docker daemon:
```json
{
"runtimes": {
"runsc": {
"path": "/usr/local/bin/runsc",
"runtimeArgs": [
"--network=none"
]
}
}
}
```
[netstack]: https://github.com/google/netstack