mirror of
https://github.com/apple/container.git
synced 2026-09-28 01:46:25 -04:00
Topic/docs refactor (#2032)
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
@@ -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**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user