mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add docs for disabling external networking.
This is a useful feature for truly untrusted code.
This commit is contained in:
committed by
Adin Scannell
parent
811de2bbe5
commit
9549ed31f9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user