@@ -68,11 +68,11 @@ $ docker build -t my-template:v1 .
6868Use it directly from your local Docker daemon:
6969
7070``` console
71- $ docker sandbox run --pull-template never - t my-template:v1 claude [PATH]
71+ $ docker sandbox run -t my-template:v1 claude [PATH]
7272```
7373
74- The ` --pull-template never ` flag tells the sandbox to use local template
75- images .
74+ The default ` --pull-template missing ` policy finds the image in your local
75+ Docker daemon without pulling from a registry .
7676
7777To share the template with others, push it to a registry:
7878
@@ -92,19 +92,20 @@ Docker Sandboxes caches template images to speed up sandbox creation. The
9292
9393- ` --pull-template missing ` (default)
9494
95- Pull the image only if it's not already cached locally. First sandbox
96- creation automatically pulls the image, and subsequent sandboxes are created
97- quickly because the image is cached .
95+ Use the local image if present, otherwise pull from the registry. Works for
96+ both locally-built images and registry images. On first use, registry images
97+ are pulled and cached; subsequent sandboxes reuse the cache .
9898
9999- ` --pull-template always `
100100
101- Always pull the image from the registry before creating the sandbox, even if
102- it's cached. Slower than ` missing ` but guarantees freshness.
101+ Always pull the latest image from the registry and update the host cache.
102+ The VM uses the refreshed cache. Slower than ` missing ` but guarantees the
103+ sandbox uses the latest version. Requires a registry image.
103104
104105- ` --pull-template never `
105106
106- Use only cached images. Never pull from a registry. Fails if the image isn't
107- in the cache .
107+ Never use the host cache. The sandbox VM pulls the image directly from the
108+ registry on every startup. Requires a registry image .
108109
109110The cache stores template images separately from your host Docker daemon's
110111images. Cached images persist across sandbox creation and deletion, but are
@@ -130,11 +131,11 @@ $ docker sandbox save claude-project my-template:v1
130131✓ Saved sandbox as my-template:v1
131132```
132133
133- This saves the image to your local Docker daemon. Use ` -- pull-template never `
134- to create new sandboxes from it :
134+ This saves the image to your local Docker daemon. The default pull policy finds
135+ the image locally :
135136
136137``` console
137- $ docker sandbox run --pull-template never - t my-template:v1 claude ~ /other-project
138+ $ docker sandbox run -t my-template:v1 claude ~ /other-project
138139```
139140
140141To save as a tar file instead (for example, to transfer to another machine):
0 commit comments