Basic mounts
Basic mounts allow binding a file or a directory and its contents from the parent host into an
enclave.
Multiple basic mount points are supported in a single enclave.
This page describes the steps required to set up a basic
mount.
Set up the basic
mount on the parent host. In this example, you will bind the directory /home
to the enclave:
First, set /home
as the root directory for the basic
mount.
$ anjuna-fs-proxy --daemonize --anjunafs-rootdir /home
Then, create a directory enclave-data
to bind to the enclave.
$ mkdir -p /home/enclave-data
Create an enclave configuration file with that basic
mount:
version: 1.7
# define volume mounts for this enclave
mounts:
# name of the basic mapping
# host must include a file or directory with the same name inside rootdir
- name: enclave-data
type: basic
# path to mount to inside the enclave
mountPath: /shared/enclave-data
In this example, the parent host mounted the directory /home/enclave-data
to /shared/enclave-data
inside the enclave.