Skip to main content

Resource allocation

Docker / Compose

SettingGuidance
shm_size / --shm-size2gb recommended for browsers / desktop apps
gpusOmit if no NVIDIA toolkit
CPU / memoryNot capped in examples — size the VM/host for nested Docker + builds
/configAlways persist (SQLite, SSL, VNC, machine id)
/var/lib/dockerNamed volume for nested Engine data

Privileges

Nested Docker and desktop stacks need privileged / unconfined sandboxes. Plan capacity as a single-tenant developer workstation, not a dense multi-tenant pod farm.

Kubernetes

The sample Deployment is BestEffort (no requests/limits). For production-like clusters:

  • Still require privileged (or equivalent) for nested Docker
  • Add requests/limits only if you accept that desktop/nested Docker may need high headroom
  • Prefer node-local HostPath or high-IOPS PVCs for /config and Docker data

GPU

Pass through with NVIDIA Container Toolkit (gpus: all, NVIDIA_VISIBLE_DEVICES, NVIDIA_DRIVER_CAPABILITIES). Softwares catalog includes GPU monitoring helpers (e.g. nvtop) depending on distro.