You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 6, 2023. It is now read-only.
@@ -42,7 +43,11 @@ This is the only containerized NFS server that offers **all** of the following f
42
43
-`nfsd`
43
44
-`rpcsec_gss_krb5` (*only if Kerberos is used*)
44
45
45
-
Usually you can enable these modules with: `modprobe {nfs,nfsd,rpcsec_gss_krb5}`
46
+
You can manually enable these modules on the Docker host with:
47
+
48
+
`modprobe {nfs,nfsd,rpcsec_gss_krb5}`
49
+
50
+
or you can just allow the container to [load them automatically](doc/feature/auto-load-kernel-modules.md).
46
51
1. The container will need to run with `CAP_SYS_ADMIN` (or `--privileged`). This is necessary as the server needs to mount several filesystems *inside* the container to support its operation, and performing mounts from inside a container is impossible without these capabilities.
47
52
1. The container will need local access to the files you'd like to serve via NFS. You can use Docker volumes, bind mounts, files baked into a custom image, or virtually any other means of supplying files to a Docker container.
48
53
@@ -145,6 +150,7 @@ If you pay close attention to each of the items in this section, the server shou
*Credit to Andy Neff [@andyneff](https://github.com/andyneff) for this idea.*
4
+
5
+
As noted in the `README`, the Docker host kernel needs a few modules for proper operation of an NFS server. You can manually enable these on the host - i.e. with `modprobe` - or you can allow the container to do this on your behalf. Here's how:
6
+
7
+
1. Add `--cap-add SYS_MODULE` to your Docker run command to allow the container to load/unload kernel modules.
8
+
1. Bind-mount the Docker host's `/lib/modules` directory into the container. e.g. `-v /lib/modules:/lib/modules:ro`
0 commit comments