Repository navigation
Replies: 2 comments 1 reply
|
Hi, thanks for the proposal. A Docker backend for workloads that don't need VM-level isolation, or that run where KVM isn't available, sounds useful. However, we expect snapshotting to be the main challenge. Much of AgentENV is built around snapshots. Templates, pause/resume and fork all rely on capturing the full VM state, meaning memory plus the rootfs and drive layers, and restoring it quickly. Docker has no direct equivalent. Committing the container filesystem only covers the disk. Checkpointing running processes would need CRIU, which is still experimental in Docker and fragile with real workloads. |
|
One option that might narrow the snapshot gap: gVisor (runsc) as the non-KVM backend instead of plain runc. runsc has checkpoint/restore built in, which captures the sandbox's process memory along with its filesystem state, and its systrap platform runs without /dev/kvm. It won't match Firecracker snapshot restore or give fork semantics for free, but it could keep templates and pause/resume working behind the same API, with plain runc for workloads that need neither. If fork can't be supported on a backend, I'd have each backend advertise its capabilities so clients can check before calling, rather than hitting a runtime error. |
Uh oh!
There was an error while loading. Please reload this page.
Hi maintainers,
From the README, AgentENV currently runs sandboxes as Firecracker microVMs. Docker is supported for deploying the server, but not as a sandbox backend.
Inspired by DeepSeek Elastic Compute (DSec), which supports multiple sandbox backends, I’m interested in adding Docker as an option for coding agents and evaluations that do not require VM-level isolation, including environments without KVM access.
The goal would be to reuse AgentENV’s existing APIs and keep client-side changes minimal, so users could choose a backend while retaining familiar command execution, file operations, and sandbox management workflows. Features such as snapshots, pause/resume, and fork would need further evaluation to define their support and semantics.
Would this direction be welcome upstream, while keeping Firecracker as the default? I’m considering maintaining a fork with Docker support, but would appreciate your thoughts on the scope and architecture before proceeding.
All reactions