I use Docker cloud sandboxes to run and manage cloud-based development environments for AI coding agents and other workloads. These notes cover inspecting Docker Sandboxes, understanding Docker Offload sandbox lifecycle behavior, and learning the sbx CLI.
I shared that Docker Sandboxes version 0.50.1 is now available and highlighted the new command for inspecting a cloud sandbox.
sbx --cloud inspect sbx_001m5fnbe0q12b1fy2fxndn3732
The example inspection reported sandbox ID sbx_001m5fnbe0q12b1fy2fxndn3732, named codex/codex-dhi-demo, using the codex agent and docker/sandbox-templates:codex-docker image.
The example sandbox was running (created 1w ago), with 1 CPU and 2048 MiB of memory.
The example sandbox had timeout action stop, auto-resume enabled, no published ports, and 59m until expiry.
I said I would run the inspection feature on a Codex sandbox from my DHI demo that day. I could see that my sandbox was stopped, would resume when I connected, and had its expiry clock paused while it was not running; this was distinct from the running example output.
I noted that adding --format json makes inspection output usable directly in a script.
- I highlighted additional 0.50.1 features: kits can declare host mounts selected with --mount HOST:SANDBOX_PATH; persistent kit volumes retain data across kit updates and sandbox recreation; HTTP network rules can match query parameters; and sbx exec returns exit code 125 when it cannot run a command.
I also called out security hardening around symlinks, host Git, OAuth redirects, and helper programs.
I recommended upgrading with brew upgrade docker/tap/sbx and encouraged people to try the release.
I described Docker Offload as running builds and containers inside an isolated cloud sandbox on Docker-managed hardware with its own Docker daemon.
docker offload create --cpus 8 --memory 16g --ttl 4h
- The example creation command requests 8 CPUs, 16g of memory, and a 4h time-to-live. Its displayed progress messages are “starting a cloud sandbox”, “Creating a cloud sandbox”, and “Starting the engine”.
I pointed readers to the Manage Docker Offload sandboxes guide to understand how a sandbox lives, pauses, resumes, and gets deleted, including why docker ps might unexpectedly return an empty list or why a sandbox might keep billing overnight.
I said the walkthrough covers the sandbox lifecycle step by step and that every command comes from the official guide or Docker CLI reference.
I presented sbx as one tool for running AI coding agents such as Claude locally or in the cloud, with the --cloud flag used for cloud sandboxes.
I shared a Docker Cloud Sandbox CLI cheatsheet described as taking 60 seconds.
- The cheatsheet timestamps cover what sbx is at 0:00, signing in at 0:06, launching a cloud sandbox at 0:10, setting size and time limit at 0:18, attaching or opening a shell at 0:27, publishing a port at 0:34, storing API keys as secrets at 0:39, controlling network access at 0:47, and listing and cleaning up at 0:52.
I directed readers to https://dockerworkshop.com for more information and shared a video link at https://lnkd.in/gEZ7Zm9G.
Related: long running cloud agents, sandbox setup and configuration, cloud sandbox workflows