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

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

Parameters

NameTypeDescription
name*string
dockerImage*string
fsCapacityBytes*number
optionsCreateSnapshotOptions
Default:{}

Build a snapshot from a Docker image.

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

Snapshot name.

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

Filesystem capacity in bytes.

Additional options (registry credentials, timeout).