command: docker sandbox save
short: Save a snapshot of the sandbox as a template
long: |-
    > [!WARNING]
    > The Docker Desktop-integrated `docker sandbox` commands are deprecated and
    > replaced by the standalone [`sbx` CLI](/manuals/ai/sandboxes/_index.md).
    > This deprecation applies only to the Docker Desktop integration, not to Docker
    > Sandboxes.

    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
usage: docker sandbox save SANDBOX TAG
pname: docker sandbox
plink: docker_sandbox.yaml
options:
    - option: output
      shorthand: o
      value_type: string
      description: |
        Save image to specified tar file instead of loading into host Docker
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
inherited_options:
    - option: debug
      shorthand: D
      value_type: bool
      default_value: "false"
      description: Enable debug logging
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: socket
      value_type: string
      description: |
        Connect to daemon at specific socket path (for development/debugging)
      deprecated: false
      hidden: true
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false

