Skip to main content
Schedule a snapshot of a running container and push it to your repo in a container registry

Usage

vastai take snapshot INSTANCE_ID --repo REPO --docker_login_user USER --docker_login_pass PASS[--container_registry REGISTRY] [--pause true|false]

Arguments

instance_id
string
required
instance_id of the container instance to snapshot

Options

--container_registry
string
default:"docker.io"
Container registry to push the snapshot to. Default will be docker.io
--repo
string
repo to push the snapshot to
--docker_login_user
string
Username for container registry with repo
--docker_login_pass
string
Password or token for container registry with repo
--pause
string
default:"true"
Pause container’s processes being executed by the CPU to take snapshot (true/false). Default will be true

Description

Takes a snapshot of a running container instance and pushes snapshot to the specified repository in container registry. Use pause=true to pause the container during commit (safer but slower), or pause=false to leave it running (faster but may produce a filesystem- // safer snapshot).

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)