1
0
mirror of https://github.com/docker/docs.git synced 2026-10-25 06:09:46 +03:00
Files
docs/data/sbx_cli/sbx_template_save.yaml
David Karlsson c953aeeb6a Merge pull request #24734 from dvdksn/fix/sbx-save-load-docs
docs: add sbx save/load snapshot workflow to custom environments
2026-04-17 10:51:04 +02:00

33 lines
1.1 KiB
YAML

name: sbx template save
synopsis: Save a snapshot of the sandbox as a template
description: |-
Save a snapshot of the sandbox as a template.
The saved image is stored in the sandbox runtime's image store and can be
used as a template for new sandboxes with: sbx run -t TAG AGENT [WORKSPACE]
Use --output to also export the image to a tar file that can be shared
and loaded on another host with: sbx template load FILE
usage: sbx template save SANDBOX TAG [flags]
options:
- name: help
shorthand: h
default_value: "false"
usage: help for save
- name: output
shorthand: o
usage: Also export the image to a tar file
inherited_options:
- name: debug
shorthand: D
default_value: "false"
usage: Enable debug logging
example: |4-
# Save as a template for new sandboxes on this host
sbx template save my-sandbox myimage:v1.0
# Also export to a shareable tar file
sbx template save my-sandbox myimage:v1.0 --output /tmp/myimage.tar
see_also:
- sbx template - Manage sandbox templates