Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions userguide/advanced/exposing_host_directories.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Exposing host directories
=========================

Anbox reads a file similar to ``fstab`` called ``bindtab`` from ``<data-path>/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 <https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html>`_.
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

# <host> <target in anbox> <type> <options> <dump> <pass>
/home/data data/media/0/data none bind,create=dir,optional 0 0


1 change: 1 addition & 0 deletions userguide/advanced/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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