diff --git a/userguide/advanced/exposing_host_directories.rst b/userguide/advanced/exposing_host_directories.rst new file mode 100644 index 0000000..4c7a132 --- /dev/null +++ b/userguide/advanced/exposing_host_directories.rst @@ -0,0 +1,19 @@ +Exposing host directories +========================= + +Anbox reads a file similar to ``fstab`` called ``bindtab`` from ``/bindtab`` (for example ``/var/snap/anbox/bindtab``) to bind directories in the android file system to those on the host. +The file follows the ``fstab`` format with a few extra options described in the ``lxc.mount.entry`` section in the `LXC documentation `_. +The file is read and passed to the internal LXC configuration. +It does not support inline comments and the host directory should be an absolute path. + +Example: + +.. code-block:: text + + # This file doesn't support inline comments + # and it requires an absolute path for the host directory + + # + /home/data data/media/0/data none bind,create=dir,optional 0 0 + + diff --git a/userguide/advanced/index.rst b/userguide/advanced/index.rst index b7130d5..d18f219 100644 --- a/userguide/advanced/index.rst +++ b/userguide/advanced/index.rst @@ -10,3 +10,4 @@ This section of the documentation details advanced tasks that power users may wa rootfs_overlay software_rendering network_configuration + exposing_host_directories