docker-agent-run
Skill by docker
Explains how to run Docker Agent with `docker agent run`, choose a safety mode, and isolate runs with the `--sandbox` flag. It is for developers who operate Docker Agent locally or in CI.
Install docker-agent-run
Built from the published package, never by AI.
git clone --depth 1 https://github.com/docker/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/docker-agent-run ~/.claude/skills/docker-agent-runRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/docker/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/docker-agent-run ~/.gemini/antigravity-cli/skills/docker-agent-runAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers the operational side of Docker Agent. It explains how to run an agent with `docker agent run` against a local config, an alias, or a registry reference. It also covers choosing a safety mode for tool calls, from strict to autonomous, and when to use the `--yolo` flag. For isolation, the `--sandbox` flag runs the agent inside a microVM managed by the sbx CLI. The sandbox network proxy is default-deny, so hosts must be allowlisted.
The skill also covers aliases for shortcuts, git worktrees through `--worktree` for isolating file edits, and troubleshooting. The `docker agent doctor` command reports the resolved model and provider and whether credentials were found. The skill assumes an agent.yaml already exists and points to other skills for writing it. It is for developers who run Docker Agent and need to pick the right level of autonomy.
Written from the project's SKILL.md and checked against it.
What it can do
- Safety modesPicks strict, balanced, restricted, or autonomous approval behavior for tool calls.
- Sandbox isolationRuns the agent in an isolated microVM with the --sandbox flag and an sbx CLI prerequisite.
- Sandbox network allowlistAdds or removes hosts the sandbox may reach with docker agent sandbox allow and deny.
- Worktree runsRuns the agent in a fresh git worktree with --worktree to isolate file edits.
- AliasesRegisters shortcuts with docker agent alias add so agents run by name.
- Credential and model diagnosticsUses docker agent doctor to check the resolved model, provider, and credentials.
- Run troubleshootingExplains fixes for missing credentials, unpulled models, and blocked network requests.
What you need
- Docker Agent CLI plugin (Docker Desktop 4.63+, or standalone via Homebrew or GitHub releases)
- sbx CLI for sandbox mode
- Provider API key for the agent's model
Try asking
- Run my agent safely so unreviewed tool calls are denied.
- Why can't my agent see my API key? Check with doctor.
- Set up an alias for my coder agent with balanced safety.
Good to know
- `--worktree` cannot be combined with `--remote` or `--sandbox`.
- A local stdio MCP server runs as a host process outside the sandbox VM.
- Headless `--exec` runs never auto-clean their worktree.
- Sandbox network access is default-deny until a host is allowlisted.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/docker-agent-run/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
agents/openai.yaml404 B -
checks/verification.md2 KB -
references/safety-and-sandbox.md2 KB -
references/sources.md2 KB
Show all 6 files
-
skill.yaml1 KB
Alternatives to docker-agent-run
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
docker-agent-run: common questions
Which safety mode should I use for unattended runs?
The skill recommends `restricted` for unattended or CI runs, so unreviewed tool calls are denied. It advises against defaulting unattended runs to `autonomous` or `--yolo`.
Does --sandbox keep my whole machine safe?
Shell, filesystem, and process activity from built-in toolsets runs inside the VM, and only the working directory is mounted. A local stdio MCP server declared on the agent runs on the host outside the sandbox.
What does a 403 Blocked by network policy error mean?
It means the destination is not allowlisted for the sandbox. The skill says to fix it with `docker agent sandbox allow <host>`.
How do I install docker-agent-run?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is docker-agent-run free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is docker-agent-run safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to docker-agent-run?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
