Closed ThomWilhelm closed 1 year ago
I don't mind adding it, but am a little unsure how adding that within the container makes a difference. Containers mount in the filesystem from the host and use the same kernel as the host, so installation at the host level makes more sense to me.
You can PR that if you want.
I think from your comment I understand why this is happening further now.
I'm running this on a cloud based Kubernetes platform. I'm deploying the NFS storage and Minecraft server as 2 separate deployments, so I'm guessing the host node itself (which I have no control over) doesn't have these NFS utilities installed.
Therefore I think the only way around this is installing into the container itself, which would explain why it's fixed the issue for me. So I believe the PR I've submitted would fix cases the host kernel doesn't have these NFS utilities installed.
That makes sense.
Enhancement Type
Improve an existing feature
Describe the enhancement
Firstly, thank you for all your work on these images they are great! This is a bit specific to my setup, but I think it could be a good improvement in allowing these images to work as flexibly as possible.
Recently I've started storing my server data on an NFS share, and then mounting that into the running container. However when I start the server, I've been hitting an intermittent issue which leads to the error
java.io.IOException: No locks available
Researching this error I stumbled across some some threads that imply all clients should have the nfs-common package installed: https://github.com/moby/moby/issues/36313 https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-20-04
Looking closer at the nfs-common package: https://packages.debian.org/sid/nfs-common
"Programs included: lockd, statd, showmount, nfsstat, gssd, idmapd and mount.nfs."
So it makes sense to me that file locking on NFS shares may not work without this installed. I extended your container and installed nfs-common, and I've not run in this issue since.
Would you consider including this package in your images? It would provide better NFS support.