Skip to main content

Nested Containers & Kubernetes

VoidRun’s MicroVM architecture provides a massive advantage over traditional containers: true nested virtualization support. Unlike Docker-in-Docker solutions that require privileged mode and security compromises, VoidRun MicroVMs can run containerized workloads natively with full isolation.

🐳 Docker Inside

Run Docker containers natively inside your sandbox with full isolation.

☸️ K3s Support

Deploy lightweight Kubernetes clusters for orchestration testing.

🔒 Secure Isolation

No privileged mode required - MicroVMs provide native isolation.

Why Nested Containers Matter

Running Docker

Docker runs inside the sandbox when you use the docker-lite or docker system image (Docker-in-Docker). Use docker-lite for the lighter Alpine-based option with Docker started during boot; use docker when you want the larger Debian-based image for heavier container or K3s-style workloads. Confirm versions with GET /images or the dashboard.

Create a Docker-Enabled Sandbox

Run a Docker Container

Multi-Container Application

Running K3s (Lightweight Kubernetes)

K3s is a lightweight Kubernetes distribution perfect for testing and development. Run it inside your VoidRun sandbox for ephemeral Kubernetes environments. For the K3s examples below, prefer the heavier Debian-based docker image instead of docker-lite.
K3s requires significant resources. We recommend allocating at least 4 CPU cores and 8GB RAM for K3s workloads.

Install and Start K3s

Deploy to K3s

Resource Considerations

Running nested containers and Kubernetes requires careful resource planning. Insufficient CPU or RAM will cause containers to fail or perform poorly.

Monitoring Resource Usage

Cleanup

Remove containers and free resources when done:

Next Steps

SSH & VNC Access

Connect directly to your sandbox via SSH or VNC for interactive access.

Custom Images

Create custom images with pre-installed Docker or K3s configurations.