Live data from Hacker News

Docker Sandboxes – Disposable, isolated sandboxes for AI agents

docker.com

351–360 of 431 posts

Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents

#351
post #141

> 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

Your example is not complete, you have to show how it will run claude/codex, you have to do extra things to install run and mount folders there, this one does that with less config, also with this agents can run docker, lxd doesn't allow you to do that

You create your own image first rather than blank ubuntu.

Packer and Incus setup:

  packer {
    required_plugins {
      incus = { version = ">= 1.0.0", source = "github.com/lxc/incus" }
    }
  }

  source "incus" "ubuntu" {
    image        = "images:ubuntu/24.04"
    output_image = "ubuntu-claude"
    type         = "virtual-machine"
  }

  build {
    sources = ["source.incus.ubuntu"]

    provisioner "shell" {
      inline = [
        "curl -fsSL https://claude.ai/install.sh | bash",
        "echo 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.bashrc"
      ]
    }
  }

Then:

  packer init ubuntu-claude.hcl
  packer build ubuntu-claude.hcl
  incus launch ubuntu-claude my-claude-vm
  incus exec my-claude-vm -- claude -p "solve the EC discrete logarithm problem, if it doesn't work keep going" --dangerously-skip-permissions
The reality of these things are that eventually you will want to do something useful or different with them and the flexibility simply isn't there compared to a real vm, if you desperately need boot times then there's plenty of other options here, especially with packer. Some of my prompts are often hitting 60+ minutes so it's not really something I think about.

Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents

#353

Earlier quoted context omitted.

How so?

The parent didn't go into any detail. I can. Homebrew has a history of ripping out your foundation underneath you. One day you are on Python 3.8, then next day you are on Python 3.10 and all your packages are broken. MacPorts doesn't do that. Now, whether you should you be using the Homebrew Python is a completely different question. YMMV for other platforms managed via Homebrew. I've traditionally used MacPorts for…

Exactly. Same with PHP, MySQL etc… Also they just block old versions and dont let you install them, you have to jump through a lot of hoops to use an old PHP version for example, so in no way developer friendly.

In the end I realized that Brew is a package manager for consumers, and as a professional i should’nt keep fighting it.

Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents

#354
post #308
post #208

Earlier quoted context omitted.

At least for gondolin and microsandbox, you bind a specific secret placeholder to the target host. i.e. your GH token is only replaced/injected for calls to api.github.com, not other hosts. And you can set up both with deny-by-default

Couldn't the agent post then the key in some public comment?

Only if the replacement is global and not, say, only looking and inserting it into the actual (eg) Authorization header. If something is only transparently altering the Authorization header, then an agent inserting the dummy value somewhere else is totally safe.

Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents

#355
post #341

Earlier quoted context omitted.

The parent didn't go into any detail. I can. Homebrew has a history of ripping out your foundation underneath you. One day you are on Python 3.8, then next day you are on Python 3.10 and all your packages are broken. MacPorts doesn't do that. Now, whether you should you be using the Homebrew Python is a completely different question. YMMV for other platforms managed via Homebrew. I've traditionally used MacPorts for…

pyenv has been standard tooling for far longer than uv. depending on package manager supplied Python packages only makes sense if you’re running rhel or Debian or something and your application is packaged/deployed/the maintenance path uses dnf/apt. Otherwise you should always use a venv and use an out of package manager update mechanism. Like, in a broader sense, vendoring dependencies only makes sense if you’re shi…

This is not about python packages, this is about python itself.

Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents

#358
post #58

The 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…

[dead]

Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents

#359
post #58

The 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…

This has both features and is open-source: https://nono.sh/

It's an OS-level sandbox, though. It doesn't launch VMs or containers for sandboxing purposes; it uses whatever sandboxing features your host kernel offers.

Re: Docker Sandboxes – Disposable, isolated sandboxes for AI agents

#360
post #79
post #16

Open source alternative with podman support and local telemetry collection https://github.com/VibePod/vibepod-cli

Looks really nice. Would it be easy to make a qwen-cli wrapper?

Sure, I added an issue for this, so it will follow in one of the next releases
Post reply on HN