Commit 680b5fa
committed
firecracker: make docker -p work in guest kernels without raw table support
Docker 28 configures direct-access filtering via iptables `-t raw` for
published ports. In Firecracker guest VMs this can fail with:
iptables ... can't initialize iptables table `raw': Table does not exist
because our current guest kernel configs all have `CONFIG_IP_NF_RAW` disabled.
Changes:
- Set `DOCKER_INSECURE_NO_IPTABLES_RAW=1` unconditionally when starting
dockerd in goinit.
- Keep an inline note explaining why this is safe for our VM sandboxing model.
- Update docker-in-firecracker coverage to include `docker run -p ...` in
`TestFirecrackerRunWithDockerOverUDS`.
- Update guest API hash expectation.
- Add TODOs at the top of all guest kernel config files to enable
`CONFIG_NF_TABLES` and remove the env-var fallback.
Repro (before/after): run the same `bb execute` command with and without
`--action_env=DOCKER_INSECURE_NO_IPTABLES_RAW=1`; `docker run -p ...` fails
without it and succeeds with it.1 parent dd70c6f commit 680b5fa
File tree
5 files changed
+9
-5
lines changed- enterprise
- server
- cmd/goinit
- remote_execution/containers/firecracker
- vmsupport/kernel
5 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | 195 | | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
2472 | 2472 | | |
2473 | 2473 | | |
2474 | 2474 | | |
2475 | | - | |
| 2475 | + | |
2476 | 2476 | | |
2477 | 2477 | | |
2478 | 2478 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
3113 | 3114 | | |
3114 | 3115 | | |
3115 | 3116 | | |
3116 | | - | |
| 3117 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
3238 | 3239 | | |
3239 | 3240 | | |
3240 | 3241 | | |
3241 | | - | |
| 3242 | + | |
0 commit comments