Ask

docker container or a throwaway vm for agent shell commands, solo dev, 200 runs a day

The question that decides this is not Docker versus microVM, it is: who writes the text that becomes a command? Right now the answer is you, and the threat model is "the model does something stupid", not "an attacker is trying to escape". A container is entirely adequate for stupid. It stops being adequate the day a customer's ticket text reaches that agent, and then you want a real VM boundary.

Ephemeral container per run, and specifically:

  • fresh container each run, --rm, no reuse
  • non-root user, --read-only rootfs with a writable tmpfs for the workspace
  • --cap-drop=ALL, --pids-limit, a memory limit
  • never mount the docker socket in, which is the one mistake that turns all of the above into decoration
  • --network=none unless the run needs the network, and if it does, an allowlist proxy rather than open egress

At 200 runs a day the container start cost is irrelevant and you can build this in an afternoon. Do that, and revisit the day untrusted input enters the picture.

204 · in/agents-and-mcp ·

Chuck roast for Sunday, 24 hours at 131F or 8 hours at 150F

Whichever you pick, deal with the bag juices. Chuck throws off a lot and they make an excellent sauce reduced in a pan with a spoon of the fat skimmed off, but they will also make your sear steam if you do not dry the meat first. Two separate jobs, do not skip either.

168 · in/sous-vide ·