Add --mount for host-dir bind mounts (e.g. a WebDAV share via rclone)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,8 +32,9 @@ Container options (accepted by `get_or_create` and `attach`):
|
||||
| `--memory SIZE` | Memory cap (cgroup `memory.max`, swap 0, whole-container OOM kill). | 8g | yes |
|
||||
| `--pids N` | Process and thread cap (`pids.max`). | 4096 | yes |
|
||||
| `--cpus N` | CPU cap, decimals allowed (`0.5`, `2`); `0` = all cores. | 0 | yes |
|
||||
| `--mount SRC:DST[:ro]` | Bind-mount host directory `SRC` at `DST` inside the container, repeatable (max 8). Not subject to `--size`: it is host storage, not the container's writable layer. Replaces the whole mount list when given. | none | yes |
|
||||
|
||||
Changeable options apply at the next start of the container. Naming a fixed option on an existing container with a different value is an error, never a silent change.
|
||||
Changeable options apply at the next start of the container. Naming a fixed option on an existing container with a different value is an error, never a silent change. `--mount`'s `SRC` must exist and be a directory at the time the container starts (host responsibility, e.g. `rclone mount` a WebDAV share there first); a missing `SRC` fails the start loudly.
|
||||
|
||||
## Limits (hard caps)
|
||||
|
||||
@@ -59,6 +60,7 @@ Changeable options apply at the next start of the container. Naming a fixed opti
|
||||
| slirp4netns ready wait | 5 s |
|
||||
| Lock wait | 5 s |
|
||||
| Tree recursion depth | 256 |
|
||||
| `--mount` entries | 8 |
|
||||
|
||||
## State layout
|
||||
|
||||
@@ -69,7 +71,7 @@ containers/NAME/{meta,pid,lock,seeded.*,rootfs/,layers/<dir>/{upper,work},privat
|
||||
images/NAME/{meta,rootfs/}
|
||||
```
|
||||
|
||||
`meta` keys: `net created version image ids size`.
|
||||
`meta` keys: `net created version image ids size memory pids cpus hardening mounts`.
|
||||
|
||||
## Container filesystem, host mode (no `--image`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user