5 ms·
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.do
by kaffekaka 10mo ago
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/ https://docs.docker.com/ai/sandboxes/
Has anyone given it a try?
- sureglymop 10mo agoWould test it but it requires "Desktop". Immediate no... no reason to use that.
- ashishb 10mo ago> 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.
- cbsmith 10mo agoI've been using container-use to do something like that: https://container-use.com/introduction https://container-use.com/introduction
- ianlevesque 10mo agoYes 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.
- kaffekaka 10mo agoYes 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.
- TCattd 10mo agoGive this a try: https://github.com/EstebanForge/construct-cli https://github.com/EstebanForge/construct-cli And let me know if you have any issue.