ehough / docker-nfs-server

A lightweight, robust, flexible, and containerized NFS server.
https://hub.docker.com/r/erichough/nfs-server/
GNU General Public License v3.0
670 stars 220 forks source link

aarch64 Support #77

Open arendtio opened 1 year ago

arendtio commented 1 year ago

Today, I wanted to use this image to set up an NFS server on my Raspberry Pi. However, I had to do some adjustments which I would like to share, so that they can be integrated or at least others can find them.

First, I didn't use this exact repo, but rather https://github.com/kevinxw/docker-nfs-server as it got more recent updates, but some issues might just be present in that updated version.

First, I had to learn that the build over at the docker hub has no support for aarch64, so I had to build it myself. When I did, the entrypoint.sh script complained that capsh wasn't available, so I added libcap to the packages. Later I learned, that the loading of the nfsd module failed, and adding kmod to the packages fixed that.

In addition, I came across the issue described in #76 and fixed it similarly.

keunhuvac commented 5 days ago

Today, I wanted to use this image to set up an NFS server on my Raspberry Pi. However, I had to do some adjustments which I would like to share, so that they can be integrated or at least others can find them.

First, I didn't use this exact repo, but rather https://github.com/kevinxw/docker-nfs-server as it got more recent updates, but some issues might just be present in that updated version.

First, I had to learn that the build over at the docker hub has no support for aarch64, so I had to build it myself. When I did, the entrypoint.sh script complained that capsh wasn't available, so I added libcap to the packages. Later I learned, that the loading of the nfsd module failed, and adding kmod to the packages fixed that.

In addition, I came across the issue described in #76 and fixed it similarly.

Can you share your image for arm64?

arendtio commented 4 days ago

@keunhuvac I have never shared an image before, so I would have to read up on how to do it. Sadly, I have other priorities at the moment. I documented the steps above, hoping @ehough would integrate the fixes in the original image.