> Each agent runs inside a dedicated microVM with your dev environment What's a "microVM" and what's the security model here compared to using real virtual machines with actual constraints on breakouts? Is it marketing fluff? Incus/LXD has had VM's for a long time now. incus launch images:ubuntu/26.04 my-ubuntu-vm --vm incus exec my-ubuntu-vm -- bash
An Ubuntu Server VM, like the ones started by Incus, use at least 512 MB of RAM per instance. If you spawn 10 sandbox VMs, you already pay 5 GB RAM just to sit there idle. You also pay a CPU cost, you have 10 kernels managing stuff, but arguably it doesn't matter that much given CPU core counts. I use something in between - a single Ubuntu VM, into which I spawn multiple Incus LXC containers for the agents. The conta…
Docker Sandboxes – Disposable, isolated sandboxes for AI agents
401–410 of 417 posts
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#402Earlier quoted context omitted.
There is a transparent proxy installed (along with the necessary certificates on the VM.) For an example, see https://docs.microsandbox.dev/networking/tls
So, if the program or the proxy solution doesn’t support it, then it doesn’t work? Like with security solutions?
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#403What is the main benefit over doing something like: docker run --runtime krun --rm -it -v $(pwd):/workspace/$(basename $(pwd)) -w /workspace/$(basename $(pwd)) --network restricted-net ghcr.io/openai/codex-universal:latest sh That runs the codex OCI in a qemu microvm. From what I can see, more fine grained network and filesystem access control as well as convenience?
Yes, pretty much, except for one detail: > That runs the codex OCI in a qemu microvm. AFAIU it's actually the other way around: krun spawns a libkrun-based (not QEMU-based) VM inside a crun container. Source: https://github.com/libkrun/libkrun/discussions/538#discussio... So with your solution you get the additional security benefit of containerizing the hypervisor on the host.
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#404├── bin
│ └── sbx
├── libexec
│ ├── containerd-shim-nerdbox-v1 │ ├── mkfs.erofs
│ ├── mkfs.ext4
│ ├── nerdbox-kernel-arm64
│ └── nerdbox-rootfs-arm64.erofs
More info about Nerdbox is here https://github.com/containerd/nerdbox
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#405The login is annoying but, lacking an open source alternative, this has been my daily driver for a while now because it works great out of the box with two key features: outbound firewall and secret injection with placeholders. I run it with superset and then each git worktree is mounted in a sandbox that is configured for each repo i work in. Closest open source I have seen is https://earendil-works.github.io/gondol…
TLDR: You're agent will get a isolated v8 runtime (chrome's sandboxed javascript runtime)
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#406Earlier quoted context omitted.
So, if the program or the proxy solution doesn’t support it, then it doesn’t work? Like with security solutions?
The docs mention it can be bypassed for configured domains.
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#407Earlier quoted context omitted.
It does, for whatever reason the marketing page doesn’t advertise it but the docs have Linux instructions: https://docs.docker.com/ai/sandboxes/ I’ve been using this pretty extensively for a few months on Mac and Linux and have been super happy with it.
Thanks. That omission didn't smell right based on everything I know about Docker. Curious choice, indeed, not to show Linux install instructions.
The nails in the coffin were 1) login was required 2) login was broken because they "didn't consider" it would be run in a headless environment [0] and 3) they shipped with hardcoded binary paths and root requirements [1].
I moved on and use Incus directly with small helper scripts, smolvm, or a full fat VM running desktop Claude or ChatGPT if I (or someone I mentor) really needs the full app. I'm not yoloing every new claw agent in --dangerously-destroy-my-things mode, so network restrictions are best effort, though filesystem access stays tight.
Either way, docker sandboxes really didn't seem to be it, and the company didn't seem interested in trying to be anything beyond an enterprise solution.
0. https://github.com/docker/sbx-releases/issues/186#issuecomme... 1. https://github.com/docker/sbx-releases/issues/48
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#408Earlier quoted context omitted.
There is a transparent proxy installed (along with the necessary certificates on the VM.) For an example, see https://docs.microsandbox.dev/networking/tls
So, if the program or the proxy solution doesn’t support it, then it doesn’t work? Like with security solutions?
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#409Earlier quoted context omitted.
There is a transparent proxy installed (along with the necessary certificates on the VM.) For an example, see https://docs.microsandbox.dev/networking/tls
So, if the program or the proxy solution doesn’t support it, then it doesn’t work? Like with security solutions?
Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents
#410Earlier quoted context omitted.
In my experience it's mostly the UX/DX where Gondolin is lacking. For instance, I don't want to set up a JavaScript project every single time I need a sandbox. Instead, I just want to place a config file somewhere in my repo or my home dir and be done with it. So I wrote a wrapper around Gondolin which allows me to do that and a few other things: https://github.com/codethief/tuor (Warning: Still very much experimenta…
If you'd be open to trying something else, my startup is open core: https://github.com/gofixpoint/amika The definition for your cloud sandboxes is just a TOML config in your repo We also have an API and CLI to let users message the agent from outside or across sandboxes We're still building a lot, so if you have any time to try it out (amika.dev) and give feedback, that is worth gold to us!