Repository navigation
Using Docker Sandboxes for more than AI, e.g. disposable GitHub Actions runners #508
joecklau
started this conversation in
Show and tell
Replies: 1 comment
|
Thanks a ton for sharing @joecklau (and even sharing your implementation). I fully agree, that's a great use case for sbx and I personally always cared a lot, that we are also able to run Testcontainers based integration tests within a sbx sandbox 😁 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Our team has been using Docker Sandboxes (
sbx) for a use case beyond AI coding agents: isolating self-hosted GitHub Actions runners.A self-hosted runner executes workflow scripts, third-party Actions, package-manager code, and Docker workloads. If any of that code is malicious or compromised, running it directly on an existing server—or giving it control of the host Docker daemon—creates a security concern.
Docker Sandboxes turned out to be a good fit for this threat model. Each runner operates inside a disposable microVM with its own filesystem and private Docker daemon.
Our lifecycle looks like this:
This is particularly useful for our e2e auto test workflows, which use
docker composeto start the test environment. The workflow can use Docker normally inside the sandbox without controlling the host Docker daemon.We have been running this setup for some time and have open-sourced the implementation, in case it is useful to anyone with similar requirements.
What I find interesting is that disposable isolation served by sbx is not only useful for autonomous AI agents, but also useful for many other scenarios. CI workflows can also execute untrusted or potentially compromised code, and there are likely other workloads with the same requirement: allow code to operate freely inside its assigned environment without giving it the same freedom on the host.
All reactions