diff --git a/mkdocs/docs/setup/installation.md b/mkdocs/docs/setup/installation.md index 4d912d3d..03140505 100644 --- a/mkdocs/docs/setup/installation.md +++ b/mkdocs/docs/setup/installation.md @@ -135,7 +135,7 @@ docker pull ghcr.io/trapexit/mergerfs:TAG docker run --device=/dev/fuse --cap-add=SYS_ADMIN -v /mnt/to-merge:/mnt/to-merge:rshared -v /mnt/mergerfs:/mnt/mergerfs:z,shared ghcr.io/trapexit/mergerfs:TAG -f '/mnt/to-merge/*' '/mnt/mergerfs' ``` - or with docker compose +or with docker compose ``` services: @@ -143,7 +143,6 @@ services: image: ghcr.io/trapexit/mergerfs:TAG container_name: mergerfs restart: unless-stopped - privileged: true cap_add: - SYS_ADMIN devices: @@ -164,6 +163,11 @@ services: relabeling?](../faq/compatibility_and_integration.md#does-mergerfs-work-with-selinux-relabeling) * `-v /mnt/to-merge:/mnt/to-merge:rshared`: The mounts from the host to merge within the container. +* **AppArmor enforcing hosts:** Docker's default container profile + denies `mount(2)`, so `/dev/fuse` plus `SYS_ADMIN` is not enough. + Add `security_opt: ["apparmor=unconfined"]` to the service (or + `--security-opt apparmor=unconfined` with `docker run`) or use a + custom profile that allows the FUSE mount. ### rootless container runtimes