Recommend using gVisor as a sandbox

This commit is contained in:
Sebastian Serth
2022-09-07 22:19:20 +02:00
parent 89fc7b2637
commit 3154c03f8a
3 changed files with 15 additions and 4 deletions

View File

@ -72,3 +72,7 @@ In order to allow full networking support in Nomad, the `containernetworking-plu
``` ```
If the path is not set up correctly or the dependency is missing, the following error will be shown in Nomad: `failed to find plugin "bridge" in path [/opt/cni/bin]` If the path is not set up correctly or the dependency is missing, the following error will be shown in Nomad: `failed to find plugin "bridge" in path [/opt/cni/bin]`
### Use gVisor as a sandbox
We recommend using gVisor as a sandbox for the execution environments. First, [install gVisor following the official documentation](https://gvisor.dev/docs/user_guide/install/) and second, adapt the `/etc/docker/daemon.json` with reasonable defaults as shown in our [example configuration for Docker](./resources/docker.daemon.json).

View File

@ -9,12 +9,9 @@ client {
plugin "docker" { plugin "docker" {
config { config {
allow_runtimes = ["runsc"]
gc { gc {
image_delay = "0s" image_delay = "0s"
} }
# auth {
# config = "/root/.docker/config.json"
# }
} }
} }

View File

@ -0,0 +1,10 @@
{
"default-runtime": "runsc",
"runtimes": {
"runsc": {
"path": "/usr/bin/runsc",
"runtimeArgs": [
]
}
}
}