diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-17 21:51:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-18 01:36:28 +0100 |
commit | 785890acf6d629ff881a1f065f431df1b7fc8c7a (patch) | |
tree | 35765d2f93219191be62d337ad60a706b4197867 /man | |
parent | 60e1651a31c9c0ed1caef1a63f5e3a87156b0b1e (diff) |
machinectl: implement "bind" command to create additional bind mounts from host to container during runtime
Diffstat (limited to 'man')
-rw-r--r-- | man/machinectl.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/man/machinectl.xml b/man/machinectl.xml index 2f2e2571f5..9d8a94aab4 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -146,6 +146,25 @@ footer.</para></listitem> </varlistentry> + <varlistentry> + <term><option>--mkdir</option></term> + + <listitem><para>When used with + <command>bind</command> creates the + destination directory before applying + the bind mount.</para></listitem> + </varlistentry> + + + <varlistentry> + <term><option>--read-only</option></term> + + <listitem><para>When used with + <command>bind</command> applies a + read-only bind + mount.</para></listitem> + </varlistentry> + <xi:include href="user-system-options.xml" xpointer="host" /> <xi:include href="user-system-options.xml" xpointer="machine" /> @@ -270,6 +289,31 @@ instance.</para></listitem> </varlistentry> + <varlistentry> + <term><command>bind</command> <replaceable>ID</replaceable> <replaceable>DIRECTORY</replaceable> [<replaceable>DIRECTORY</replaceable>]</term> + + <listitem><para>Bind mounts a + directory from the host into the + specified container. The first + directory argument is the source + directory on the host, the second + directory argument the source + directory on the host. When the latter + is omitted the destination path in the + container is the same as the source + path on the host. When combined with + the <option>--read-only</option> + switch a ready-only bind mount is + created. When combined with the + <option>--mkdir</option> switch the + destination path is first created + before the mount is applied. Note that + this option is currently only + supported for + <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry> + containers.</para></listitem> + </varlistentry> + </variablelist> </refsect1> |