Topic/docs refactor (#2032)

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
Eric Ernst
2026-08-11 09:34:53 -07:00
committed by GitHub
parent ff5aa8a03b
commit 875d80ba07
16 changed files with 1362 additions and 824 deletions
+6 -18
View File
@@ -619,7 +619,7 @@ container image save [--arch <arch>] [--os <os>] --output <output> [--platform <
### `container image load`
Loads images from a tar archive created by `image save`. The tar file must be specified via `--input`.
Loads images from a tar archive created by `image save`. Specify the tar file with `--input`.
**Usage**
@@ -911,22 +911,10 @@ container volume create --opt journal=journal --opt size=10g myvolume
**Anonymous Volumes**
Anonymous volumes are auto-created when using `-v /path` or `--mount type=volume,dst=/path` without specifying a source. They use UUID-based naming (`anon-{36-char-uuid}`):
```bash
# Creates anonymous volume
container run -v /data alpine
# Reuse anonymous volume by ID
VOL=$(container volume list -q | grep anon)
container run -v $VOL:/data alpine
# Manual cleanup
container volume rm $VOL
```
> [!NOTE]
> Unlike Docker, anonymous volumes do NOT auto-cleanup with `--rm`. Manual deletion is required.
Using `-v /path` or `--mount type=volume,dst=/path` without a source auto-creates a
named volume for you, tagged with the `com.apple.container.resource.anonymous` label.
See [Mounts and volumes](./volumes.md#anonymous-volumes) for how to find and clean
these up.
### `container volume delete (rm)`
@@ -1012,7 +1000,7 @@ The registry commands manage authentication and defaults for container registrie
### `container registry login`
Authenticates with a registry. Credentials can be provided interactively or via flags. The login is stored for reuse by subsequent commands.
Authenticates with a registry. You can provide credentials interactively or with flags. The login is stored for reuse by subsequent commands.
**Usage**