News for hackers. Stuff that matters.
Re:Observed Agent Sandbox Bypasses by kaffekaka on Wednesday December 31, 2025 @06:47PM (#46449600)
I am testing running agents in docker containers, with a script for managing different images for different use cases etc, and came across this: https://docs.docker.com/ai/sandboxes/

Has anyone given it a try?

Re:Observed Agent Sandbox Bypasses by ianlevesque on Wednesday December 31, 2025 @07:49PM (#46450033)
Yes but it’s barely usable. I ended up making my own Dockerfile and a bash script to just ‘docker run’ my setup itself, and as a bonus you don’t need Docker Desktop. I might open source it at some point but honestly it’s pretty trivial to just append a couple of volume mount flags and env vars to your docker run and have exactly what you want included.
Re:Observed Agent Sandbox Bypasses by kaffekaka on Thursday January 01, 2026 @03:08PM (#46457555)
Yes this is what I have done as well.

But I also run Claude as its own user on my linux system. This way it is constrained by the OS user permissions instead of docker. Not sure of pro/con yet though.

Re:Observed Agent Sandbox Bypasses by ashishb on Wednesday December 31, 2025 @07:14PM (#46449770)
> Has anyone given it a try?

Yes, I don't think this will persist caches & configs outside of the current dir, for example, the global npm/yarn/uv/cargo cache or even Claude/Codex/Gemini code config.

I ended up writing my own wrapper around Docker to do this. If interested, you can see the link in my previous comments. I don't want to post the same link again & again.

Re:Observed Agent Sandbox Bypasses by cbsmith on Wednesday December 31, 2025 @07:26PM (#46449874)
I've been using container-use to do something like that: https://container-use.com/introduction
Re:Observed Agent Sandbox Bypasses by sureglymop on Wednesday December 31, 2025 @06:58PM (#46449667)
Would test it but it requires "Desktop". Immediate no... no reason to use that.
Re:Observed Agent Sandbox Bypasses by TCattd on Wednesday December 31, 2025 @10:15PM (#46450959)
Give this a try: https://github.com/EstebanForge/construct-cli

And let me know if you have any issue.