Live data from Hacker News

Docker Sandboxes – Disposable, isolated sandboxes for AI agents

docker.com

201–210 of 431 posts

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

#201

I'm confused: 1. If I run this on Mac, then inside the sandbox / microVM, am I still running MacOS or some Linux distribution? 2. If the only thing that's mounted from the host is the $PWD, how does it guarantee that it has all the system libraries that I have installed on my host system? e.g. my `/opt/homebrew` libraries or `sudo apt install libfoo-dev` headers

Docker uses VMs in non-Linux OS to provide a Linux where containers can actually exist

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

#203
I built "Locki": something similar but open-source! A bit different approach -- single VM with Incus containers -- focusing on speed of spinning up new sandboxes and integraton with git worktrees. The core grievance that motivated me was the lack of docker/kubernetes support in existing sandboxing tools, with Locki there's no chance of footguns like "two agents rebuild :latest tag at the same time". Give it a try: https://github.com/JanPokorny/locki

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

#204
post #135

Earlier quoted context omitted.

It’s injected into an outbound api call, not into an env var the agent can read.

what's to stop an agent creating an outbound call with the var to a malicious endpoint? (unless you whitelist what it has access to)

You just don't inject the real secret unless hostname/whatever rule matches the request, right? I don't know if that's how this works but it's my assumption.

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

#205
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…

I made Locki: https://github.com/JanPokorny/locki

Internally uses a single VM + Incus containers, supports docker/Kubernetes in each sandbox, has integrated worktree management.

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

#208
post #135

Earlier quoted context omitted.

It’s injected into an outbound api call, not into an env var the agent can read.

what's to stop an agent creating an outbound call with the var to a malicious endpoint? (unless you whitelist what it has access to)

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

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

#209
post #44

Earlier quoted context omitted.

You want to prevent the agent/others from reaching your home directory and other things. As long as you don't mount/sync directories/files from/to the container, so no mounting like "-v $(pwd):/app", but instead copy in, then when done, copy out. And of course, instead of doing the "copy in > copy out" process manually, get your local agent to write a bash script that does that for you, given what directory you're in…

What is the advantage of copying rather than a bind-mount?

"Oops I deleted everything under $FOLDER – that mistake is on me" doesn't kill it on your host system

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

#210
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…

Isn't Nvidia's openshell exactly what you're looking for? I'm asking because I'm just learning about this stuff myself and tested openshell yesterday with pi for the first time.

https://github.com/NVIDIA/openshell

Post reply on HN