Skip to content

Install kmod in image to get zstd module support#15

Open
adepssimius wants to merge 1 commit intoobeone:mainfrom
adepssimius:main
Open

Install kmod in image to get zstd module support#15
adepssimius wants to merge 1 commit intoobeone:mainfrom
adepssimius:main

Conversation

@adepssimius
Copy link
Copy Markdown

@adepssimius adepssimius commented Jun 11, 2025

Running on an Ubuntu 24.04 host, the nfs kernel modules are zstd compressed. The modprobe that ships with alpine does not support zstd compressed modules and thus the image fails to start.

==================================================================
      SETTING UP ...
==================================================================
----> kernel module nfsd is missing
----> attempting to load kernel module nfsd
insmod /lib/modules/6.8.0-60-generic/kernel/fs/nfs_common/nfs_acl.ko.zst
modprobe: ERROR: could not insert 'nfsd': Exec format error
---->
----> ERROR: unable to dynamically load kernel module nfsd. try modprobe nfsd on the Docker host
---->

If I set this as my entry command everything starts up just fine.

          command: ["/bin/sh","-c"]
          args:
            - |
              apk add --no-cache kmod \
              && exec /usr/local/bin/entrypoint.sh

See this built at ghcr.io/adepssimius/nfs-server:latest

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

Successfully merging this pull request may close these issues.

1 participant