add_sandbox_mount
Bind-mount a host folder into a sandbox container for admin use, limited to configured HOST_MOUNT_ROOTS, so sandbox apps can access shared host files.
Instructions
Mount a host folder into the sandbox (admin)
Admin only, with HOST_MOUNT_ROOTS set: bind-mounts a host folder at or under one of those roots into the sandbox container (its own Docker's apps can bind it from there too). The sandbox's owner gets that folder as root. The sandbox container is recreated: a running sandbox restarts (its apps are unreachable for a few seconds), an asleep one stays asleep, one in deep sleep gets it when it wakes. A host folder that does not exist is an error from Docker, not an empty new folder. HTTP POST /sandboxes/{name}/mounts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Absolute host path, at or under one of HOST_MOUNT_ROOTS | |
| name | Yes | ||
| target | No | Where it appears in the sandbox; default /mnt/<last part of host>. Not /, a system directory (/etc, /usr, /proc…) or one of the sandbox's own mounts (/var/lib/docker, /opt, /root, /home, /srv…) | |
| readonly | No |