dev: Limit devcontainer memory usage to 8GB
Devcontainer memory usage is currently unbounded. This allows runaway
processes (like rust-analyzer) to monopolize system resources, causing
memory exhaustion for the host OS.
This change adds a limit so that the oomkiller reaps devcontainer
processes when they exceed 8GB.
},
"runArgs": [
"--init",
+ // Limit container memory usage.
+ "--memory=8g",
+ "--memory-swap=8g",
// Use the host network so we can access k3d, etc.
"--net=host",
// For lldb
