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:03:01 -07:00 committed by Adin Scannell
parent 811de2bbe5
commit 9549ed31f9
1 changed files with 22 additions and 0 deletions

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