Skip to content

Commit 9cd0887

Browse files
committed
sandboxes: fix incorrect descriptions for --pull-template
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent 541607a commit 9cd0887

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

content/manuals/ai/sandboxes/migration.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,13 @@ template.
120120
4. Create a new sandbox with your template:
121121

122122
```console
123-
$ docker sandbox create --template my-sandbox-template:v1 \
124-
--pull-template=never \
125-
claude ~/project
123+
$ docker sandbox create --template my-sandbox-template:v1 claude ~/project
126124
```
127125

128126
> [!NOTE]
129127
> The `--pull-template` flag was introduced in Docker Desktop 4.61 (Sandbox
130-
> version 0.12). For Docker Desktop 4.58–4.60, substitute
131-
> `--pull-template=never` with `--load-local-template`.
128+
> version 0.12). On Docker Desktop 4.58–4.60, use `--load-local-template`
129+
> to use a locally-built template image.
132130
133131
5. Run the sandbox:
134132

content/manuals/ai/sandboxes/templates.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ $ docker build -t my-template:v1 .
6868
Use 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

7777
To 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

109110
The cache stores template images separately from your host Docker daemon's
110111
images. 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

140141
To save as a tar file instead (for example, to transfer to another machine):

0 commit comments

Comments
 (0)