mirror of
https://github.com/apple/container.git
synced 2026-09-25 17:15:38 +00:00
Implicitly create named volumes (#769)
- Closes #690. ## Type of Change - [ ] Bug fix - [x] New feature - [ ] Breaking change - [ ] Documentation update ## Motivation and Context Named volumes are now implicitly created when referenced in container commands. So, if `myvolume` doesn't exist and you run `container run -v myvolume:/data alpine`, it is automatically created. ## Testing - [x] Tested locally - [x] Added/updated tests - [x] Added/updated docs
This commit is contained in:
@@ -575,7 +575,7 @@ Only global flags are available for debugging, version, and help.
|
||||
|
||||
## Volume Management
|
||||
|
||||
Manage persistent volumes for containers. Volumes can be explicitly created with `volume create` or implicitly created using anonymous volume syntax (`-v /path` without a source name).
|
||||
Manage persistent volumes for containers. Volumes can be explicitly created with `volume create` or implicitly created when referenced in container commands (e.g., `-v myvolume:/path` or `-v /path` for anonymous volumes).
|
||||
|
||||
### `container volume create`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user