LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithsandboxSandboxClientcreateSnapshot
Method●Since v0.8

createSnapshot

Build a snapshot from a Docker image.

Blocks until the snapshot is ready (polls with 2s interval).

Copy
createSnapshot(
  name: string,
  dockerImage: string,
  fsCapacityBytes: number,
  options: CreateSnapshotOptions = {}
): Promise<Snapshot>

Parameters

NameTypeDescription
name*string

Snapshot name.

dockerImage*string

Docker image to build from (e.g., "python:3.12-slim").

fsCapacityBytes*number

Filesystem capacity in bytes.

optionsCreateSnapshotOptions
Default:{}

Additional options (registry ID, timeout).

View source on GitHub