diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-08-12 12:56:17 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-08-12 12:56:17 +0300 |
| commit | 3c6dd9a79232cc70f737d12ea3a1887e7c56e2aa (patch) | |
| tree | e190defed7ab83df25d528e857f8dfd9ef6c237d /content | |
| parent | f6b84bdde1c3cfa1706dd8cf6d3c8a6a302cf300 (diff) | |
Fix mounts
Diffstat (limited to 'content')
| -rw-r--r-- | content/posts/linux-oci-containers-as-jails/index.md | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/content/posts/linux-oci-containers-as-jails/index.md b/content/posts/linux-oci-containers-as-jails/index.md index d698cf3..722a233 100644 --- a/content/posts/linux-oci-containers-as-jails/index.md +++ b/content/posts/linux-oci-containers-as-jails/index.md @@ -126,7 +126,6 @@ Then, use `umoci` to extract the layers into a valid Linux userland. Just one pr # Assuming amd64 arch here [immich-server]$ fetch https://github.com/opencontainers/umoci/releases/latest/download/umoci.linux.amd64 [immich-server]$ install -m 755 umoci.linux.amd64 /usr/local/bin/umoci -[immich-server]$ mkdir /linux [immich-server]$ umoci unpack --image $TAG unpacked ``` @@ -159,6 +158,8 @@ Now, define the jail properly with a `jail.conf`, taking inspiration from the Ha Mount also any directories that are used during runtime, i.e. those that are handled by volume or bind mounts when using OCI containers. +Note that the jail does not need any of the `allow.mount.*` directives, since the mount syscalls happen on the host side. + Edit as needed: ``` @@ -173,14 +174,7 @@ immich-server { exec.clean; mount.devfs; devfs_ruleset = 4; # Ensure that you use a devfs ruleset that exposes all basic devices - allow.mount; - allow.mount.devfs; - allow.mount.fdescfs; - allow.mount.procfs; - allow.mount.linprocfs; - allow.mount.linsysfs; - allow.mount.tmpfs; - enforce_statfs = 1; + enforce_statfs = 1; # Allow the jail to see what's mounted # HOSTNAME/PATH host.hostname = "${name}"; |
