Moving Jenkins Builds From Docker Pipeline Agents to CreateOS Sandbox: What Changes and What Stays the Same
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.
Moving Jenkins Builds From Docker Pipeline Agents to CreateOS Sandbox: What Changes and What Stays the Same
You have decided some of your Jenkins builds need more than a container. Maybe a pipeline started running agent-written patches, fork pull requests, or dependencies nobody audits. The next question is practical: what does moving those builds from Docker Pipeline agents to CreateOS Sandbox agents actually touch?
This page answers that, area by area. It assumes the choice is made. For the side-by-side feature comparison, see CreateOS Sandbox vs the Docker Pipeline plugin.
What stays the same after the switch
More than most teams expect.
- A fresh environment per build. Docker Pipeline runs each build in a container and throws it away. The CreateOS Sandbox plugin gives each build a fresh microVM agent and destroys it when the build finishes.
- Declarative Pipeline. Both support it, so your Jenkinsfile does not need a rewrite. What changes is the agent your stages run on.
- Your Jenkins controller. The plugin changes the agent layer, not the controller.
- Self-hosting, if you need it. Docker Pipeline runs containers on your own Jenkins agents. CreateOS Sandbox can match that with bring your own compute: the same API on your machines, covered in the self-hosting docs.
What changes, area by area
| Area | Docker Pipeline agent | CreateOS Sandbox agent |
|---|---|---|
| Kernel | Shared with the Jenkins host | Own guest kernel in a Firecracker microVM |
| Build environment | A Docker image or Dockerfile | An agent rootfs that includes a JVM |
| Where the build runs | A container on your Jenkins agent | A sandbox, connected over Inbound WebSocket or SSH over the CreateOS tunnel |
| Network policy | Inherits the host's network posture | Per-sandbox egress allowlist, enforced in the host kernel once set |
| Who sets network policy | Whoever manages host firewall rules | Whoever has CreateOS API or CLI access |
| Start time | Faster than a cold microVM boot | Tens of milliseconds from snapshot on an idle host; 11 to 13 s for a cross-host cold start |
| Billing | Agents you already run | Per second, $0 egress |
| GPU builds | Depends on host setup | Not available |
The boundary moves from a namespace to a machine
A container is a process-level boundary on the host kernel. A kernel-level escape from one build reaches the host, and every other build on it. A CreateOS Sandbox agent runs on its own guest kernel, so a hostile build has to escape a virtual machine. We published a walkthrough of a sandbox escape because this is the boundary that matters when the code inside is working to cross it.
The image becomes an agent rootfs
With Docker Pipeline, the build environment is a Docker image. With the CreateOS Sandbox plugin, the Jenkins agent itself runs inside the sandbox, so the rootfs it boots from must include a JVM. The plugin repo ships a rootfs that meets that requirement. Plan for the tools your builds expect as part of the same change.
Network policy moves off the host and onto the sandbox
A Docker container inherits the host's network posture. Restricting a build usually means firewall rules on a shared host, managed outside Jenkins.
On CreateOS Sandbox, each sandbox carries its own egress allowlist. Outbound access is open until you set at least one rule. Once a rule exists, everything else is denied, and enforcement sits in the host kernel with eBPF, outside the guest. Inbound is closed by default regardless.
The plugin's Sandbox Template has no egress field. The allowlist is set through the egress field at create time, PUT /v1/sandboxes/{id}/egress (applies live, no restart), the SDK's setEgress method, or createos sandbox firewall set on the CLI. The egress reference has the details.
The organisational change is the one teams miss. Whoever owns a pipeline now needs CreateOS API or CLI access to set its network policy.
Start time and caches
Containers start faster than a cold microVM boot, and an image you already have is the zero-change option. Sandbox creation restores from snapshot in tens of milliseconds, about 30 ms on an idle host (an idle-host figure, not an SLA). A cross-host cold start takes 11 to 13 seconds. A fresh machine per build also means cold caches every time. If a job starts every minute, measure the whole build time before you move it.
The bill
Docker Pipeline runs on agents you already pay for. CreateOS Sandbox bills per second with $0 egress, so a build pays for the seconds its machine exists. Shapes run from a quarter CPU up to 8 CPU and 16 GB of RAM, with 10 to 60 GB of disk. New accounts start with 500 free credits. Rates are on the Sandbox pricing page.
What you gain beyond the boundary
The switch also adds two capabilities Docker agents do not have.
- Pause, resume and fork. A sandbox can pause to a memory plus disk snapshot and resume where it stopped. Fork branches a paused sandbox so you can try several candidate fixes in parallel. The pause, resume and fork reference covers the calls.
- Private networking between sandboxes. Multi-machine builds can attach to private overlay networks with per-network private DNS, with no public exposure.
Which builds should stay on Docker agents
Keep the Docker Pipeline plugin where it fits:
- builds that only run first-party, reviewed code in a trusted image
- GPU builds, since CreateOS Sandbox has no GPU sandboxes today
- very short, very frequent jobs where start time dominates and the code is trusted
You can run both plugins and move the untrusted pipelines first.
A four-step switch for one pipeline
- Install and authenticate. Install the plugin from Manage Jenkins > Plugins > Available plugins, and create a CreateOS API key.
- Check the agent rootfs. It must include a JVM and the tools the build expects. The plugin repo ships a rootfs that covers the JVM requirement.
- Decide the allowlist. List the hosts the build must reach: package registry, mirror, artifact store. Apply it through the CreateOS API or CLI as part of rollout, not after the first untrusted build.
- Move one untrusted pipeline. Leave the rest on Docker agents. Compare build time, cost, and what the agent could reach.
Changes to build infrastructure often go through a compliance review. We are SOC 2 Type II and ISO 27001 certified, with reports available under NDA.
Questions teams ask when moving off Docker agents
Do I need to rewrite my Jenkinsfile? No. Declarative Pipeline is supported. The agent your stages run on changes, and the pipeline structure carries over.
Where does network policy go after the switch? Onto the sandbox. Set it through the CreateOS API or CLI, not in the plugin. Outbound is open until the first rule. Once set, everything else is denied.
Can Docker agents and sandbox agents run side by side? Yes. Run both and move the untrusted pipelines first.
Is the CreateOS Sandbox plugin an official Jenkins plugin? Yes. It is listed on the Jenkins plugin index and maintained under the Jenkins organisation. The plugin shipped on 30 September 2026, and the runtime underneath has run CreateOS's own CI since July 2026.
Install the plugin
Install the CreateOS Sandbox plugin for Jenkins. It is listed on the Jenkins plugin index at plugins.jenkins.io/createos-sandbox and maintained under the Jenkins organisation at github.com/jenkinsci/createos-sandbox-plugin. Install it from Manage Jenkins > Plugins > Available plugins. You need a CreateOS API key, which you can create free at createos.sh.
About CreateOS
CreateOS runs AI agents and the code they write. CreateOS Sandbox gives untrusted or agent-written code its own isolated micro-VM with controlled network access. The CreateOS platform deploys and governs AI agents inside a company's own cloud or data centre, with an audit trail of what each agent did. Start at createos.sh.