Skip to content
Fresh

docker sandbox save

Back

Reference

docker sandbox save

Copy as Markdown

Open MarkdownAsk Docs AIClaudeOpen in Claude

| Description | Save a snapshot of the sandbox as a template | | Usage | docker sandbox save SANDBOX TAG |

Description

Save a snapshot of the sandbox as a template.

By default, the image is loaded into the host's Docker daemon (requires Docker to be running). Use --output to save the image to a tar file instead.

Examples:

Load into host Docker (requires host Docker running)

docker sandbox save my-sandbox myimage:v1.0

Save to file (works without host Docker)

docker sandbox save my-sandbox myimage:v1.0 --output /tmp/myimage.tar

Options

OptionDefaultDescription
-o, --outputSave image to specified tar file instead of loading into host Docker