Replies: 5 comments 5 replies
-
|
Podman already has the building blocks to do what Docker Sandboxes does, even if there is no single branded "Podman Sandboxes" feature yet. Docker Sandboxes essentially gives you an isolated container environment with a mounted workspace, network access, and the ability to execute commands -- all behind a simplified API that AI agents can call. You can achieve the same thing with Podman today: Basic sandbox pattern# Create a sandbox container with a workspace mount
podman run -d --name agent-sandbox \
--network=slirp4netns \
-v /path/to/workspace:/workspace:Z \
--memory=2g --cpus=2 \
ubuntu:24.04 sleep infinity
# Execute commands in the sandbox
podman exec agent-sandbox bash -c "cd /workspace && python3 script.py"
# Copy files in/out
podman cp local-file.txt agent-sandbox:/workspace/
podman cp agent-sandbox:/workspace/output.txt ./
# Tear down when done
podman rm -f agent-sandboxWith Podman's REST APIAI agents typically need a programmatic interface. Podman's Docker-compatible API works out of the box: # Start the API listener
podman system service --time=0 unix:///tmp/podman.sock &
# Now any Docker SDK client can connect
curl --unix-socket /tmp/podman.sock http://localhost/v4.0.0/containers/jsonAny AI agent framework that supports Docker (OpenAI's Codex, LangChain tools, etc.) can point at this socket and it just works. Security advantage over DockerPodman's rootless mode is arguably better suited for AI sandboxes than Docker:
What would a dedicated feature look like?If Podman were to add a first-class sandbox concept, it would probably be a thin wrapper around:
The Quadlet/systemd integration already covers most of this for long-running sandboxes. For the AI agent use case specifically, the main missing piece is a higher-level CLI command like |
Beta Was this translation helpful? Give feedback.
-
|
I didn't look into docker sandbox, but AFAIK sandboxing is what |
Beta Was this translation helpful? Give feedback.
-
|
It features a host network filter to prevent secrets (api key) from being leaked. |
Beta Was this translation helpful? Give feedback.
-
|
How does using podman as outlined above (including the use of krun) compare with https://github.com/superradcompany/microsandbox ? |
Beta Was this translation helpful? Give feedback.
-
|
Podman already has many of the primitives needed here, but the missing piece is an opinionated agent-sandbox profile that combines them into one understandable workflow. For AI agent use cases, the profile should probably cover:
The value of a branded "sandbox" mode is not that containers are new; it is that the safe defaults are assembled for users who are not container/security experts. That is especially relevant for agents because the code being executed may be generated dynamically rather than reviewed ahead of time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the era of AI Agents, will there be an equivalent to Docker Sandboxes?
https://docs.docker.com/ai/sandboxes/
Beta Was this translation helpful? Give feedback.
All reactions