---
title: "Docker Sandboxes lifecycle: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/docker-sandboxes-lifecycle/
description: "Pins Docker's local sbx lifecycle skill, which requires a dry-run before prune and forbids mounting a secrets file into the sandbox."
---

# Docker Sandboxes lifecycle: review, setup & limitations · Undominated.ai

> Pins Docker's local sbx lifecycle skill, which requires a dry-run before prune and forbids mounting a secrets file into the sandbox.

[← Explore all skills](/skills/)

CONTAINER SANDBOXES / Docker

# Docker Sandboxes lifecycle

Pins Docker's local sbx lifecycle skill, which requires a dry-run before prune and forbids mounting a secrets file into the sandbox.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/docker/skills/tree/f79172733725e2fd236343ee7b963c446ed85d09/skills/docker-sandboxes-lifecycle)

SOURCE REVIEW

 Reviewed 2026-10-15
 Evidence 5 linked sources
 Publisher Docker
 Licence [Apache-2.0 ↗](https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/LICENSE)
 Revision f79172733725
 [Read what was—and wasn’t—checked ↓](#review)

“Use this skill when creating, running, reattaching to, listing, stopping, or removing Docker Sandboxes (the standalone `sbx` CLI that runs AI coding agents in isolated microVMs), even if the user just says they want to "run claude in a sandbox", "isolate an agent from my repo", "give an agent its own git clone", or "clean up old sandboxes". Covers `sbx run`/`sbx create` (including the built-in agents claude, codex, cursor, devin, docker-agent, gemini, opencode, shell), workspace bind-mount vs `--clone` isolation, additional read-only workspaces, reattaching by `--name`, `sbx ls`/`stop`/`rm`/`prune`, `sbx exec`, `sbx cp`, and `sbx ports`.”

 [Docker · upstream description ↗](https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/skills/docker-sandboxes-lifecycle/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - The catalogue already has Docker's destructive-guardrails and network-credentials skills and not this lifecycle file.
- The file requires sbx prune --dry-run before removal, limits --force to already-reviewed teardown, and says a read-only mount still exposes a secrets file.

### A good fit for

 - Cleaning up stopped local sbx sandboxes only after a dry-run, and choosing --clone instead of a writable bind mount

### Weigh up before choosing

 - This review did not execute the resource.
- npx skills add docker/skills prompts for skills and agents; the README's one-skill example names docker-compose-patterns, not this file.
- The skill cites docker/sandboxes commit df5c96ba60484fa2c375469dbac912c205da6c37 and an older installed sbx build. Neither was opened or run.
- references/sources.md and checks/verification.md were not opened.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - skills/docker-sandboxes-lifecycle/SKILL.md
- README.md
- LICENSE

### Our findings

 - The skill says sbx prune removes only stopped sandboxes but is still irreversible, and that --dry-run must be read before a real prune.
- It says sbx rm deletes containers, state, and sandbox-scoped secrets, and that --force must not be a habit.
- It says a :ro workspace mount blocks writes but not reads, so a secrets file must not be mounted that way.
- It says the current source flag is --filter until=VALUE and that an older installed sbx may still show since=.

### Not established by this review

 - The resource was not executed and its tools were not called.
- sbx was not installed or run.
- No sandbox was created, pruned, or removed.
- The cited docker/sandboxes commit was not fetched.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/README.md)

DOCUMENTED COMMAND

 npx skills add docker/skills Copy command ↗

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

 - The README quick start is the command above, and it says the command prompts for which skills and which agents to install.
- The same README shows a one-skill form only with --skill docker-compose-patterns, not with docker-sandboxes-lifecycle.
- The README also shows /plugin install docker-skills@docker after /plugin marketplace add docker/skills.

### Before you start

 - A skills-compatible agent or the skills CLI
- The standalone sbx CLI if the skill's commands are followed, which this review did not install

### Compatibility

Claude Code · OpenAI Codex · Cursor · GitHub Copilot · Gemini CLI · OpenCode · Windsurf · Cline · Kiro · skills CLI

### Implementation

shell

### Local skill text plus an operator-run sbx CLI

 - Read the skill
- Create or remove local sandboxes only if the operator runs sbx
- Read host files that a bind mount exposes to the sandbox

### Cost model

Apache-2.0; no sbx command was run

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [docker-sandboxes-lifecycle SKILL.md ↗](https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/skills/docker-sandboxes-lifecycle/SKILL.md) Checked 2026-10-14 https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/skills/docker-sandboxes-lifecycle/SKILL.md Supports: dry-run before prune, --force limit, and secrets-mount refusal
- [Repository README ↗](https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/README.md) Checked 2026-10-14 https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/README.md Supports: npx skills add docker/skills and Apache-2.0 statement
- [Repository LICENSE ↗](https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/LICENSE) Checked 2026-10-14 https://github.com/docker/skills/blob/f79172733725e2fd236343ee7b963c446ed85d09/LICENSE Supports: Apache License Version 2.0
- [2026-10-15 C2-W29 source re-review at the existing pin ↗](https://raw.githubusercontent.com/docker/skills/f79172733725e2fd236343ee7b963c446ed85d09/skills/docker-sandboxes-lifecycle/SKILL.md) Checked 2026-10-15 https://raw.githubusercontent.com/docker/skills/f79172733725e2fd236343ee7b963c446ed85d09/skills/docker-sandboxes-lifecycle/SKILL.md Supports: upstreamDescription, review.notTested, review.reviewedAt
- [2026-10-15 C2-W29 source re-review at the existing pin ↗](https://raw.githubusercontent.com/docker/skills/f79172733725e2fd236343ee7b963c446ed85d09/README.md) Checked 2026-10-15 https://raw.githubusercontent.com/docker/skills/f79172733725e2fd236343ee7b963c446ed85d09/README.md Supports: install.command

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Docker Sandboxes environment file ↗ Pins Docker's sbxenv skill, which treats sbx env plan as a no-change preview and will not default to auto-approving host lifecycle commands.](/skills/docker-docker-sandboxes-env/)[### Docker Sandboxes kits ↗ Pins Docker's kit-spec skill, which forbids secret kit arguments and says a schema check does not prove composition or that a host is blocked.](/skills/docker-docker-sandboxes-kits/)[### Infisical User Setup Guide ↗ Infisical skill for getting secrets from Infisical into applications and platforms: the CLI, Docker, CI/CD, Kubernetes, the language SDKs and machine identity authentication.](/skills/infisical-setup/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
