Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel module nfs is missing #82

Open
alen-linux opened this issue Dec 16, 2023 · 1 comment
Open

kernel module nfs is missing #82

alen-linux opened this issue Dec 16, 2023 · 1 comment

Comments

@alen-linux
Copy link

haiyue@Qinghui:~/win10/docker-data/nfs$ uname -a
Linux Qinghui 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

haiyue@Qinghui:~/win10/docker-data/nfs$ cat /etc/modules-load.d/modules.conf 
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

modprobe nfs
modprobe nfsd


haiyue@Qinghui:~/win10/docker-data/nfs$ docker run \
-v /home/haiyue/win10/docker-data/nfs:/nfsshare:rw \
-e "NFS_EXPORT_0"="/nfsshare  *(rw,sync,no_root_squash,no_all_squash,no_subtree_check,nohide,crossmnt)"  \
--privileged \
-p 2049:2049 \
erichough/nfs-server

==================================================================
      SETTING UP ...
==================================================================
----> building /etc/exports from environment variables
----> collected 1 valid export(s) from NFS_EXPORT_* environment variables
----> kernel module nfs is missing
----> 
----> ERROR: nfs module is not loaded in the Docker host's kernel (try: modprobe nfs)
----> 

why?

@alen-linux
Copy link
Author

haiyue@Qinghui:~/win10/docker-data/nfs$ docker info
Client: Docker Engine - Community
 Version:    24.0.7
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant