systemctl bind
Ephemerally bind-mount a file or directory from the host into a unit's mount namespace. More information: https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#bind UNIT PATH [PATH].
- Bind-mount a host path into the same location inside the unit:
systemctl bind /
- Bind-mount a host path into a different location inside the unit:
systemctl bind / /
- Bind-mount a path as read-only inside the unit:
systemctl bind / --read-only
- Create the destination path inside the unit before binding:
systemctl bind / / --mkdir
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
