logoalt Hacker News

supermattyesterday at 2:12 PM1 replyview on HN

> now you need Docker-in-Docker

Or you can just mount the socket and call docker from within docker.


Replies

emilburzoyesterday at 3:02 PM

Correct, which I wanted to avoid because:

> Mounting the Docker socket grants the agent full access to your Docker daemon, which has root-level privileges on your system. The agent can start or stop any container, access volumes, and potentially escape the sandbox. Only use this option when you fully trust the code the agent is working with.

https://docs.docker.com/ai/sandboxes/advanced-config/#giving...

show 1 reply