Closed djonasdev closed 5 years ago
adding cap_add: - SYS_ADMIN
solved the problem:
version: '2'
services:
nfs-server:
privileged: true
container_name: nfs-server
restart: unless-stopped
image: itsthenetwork/nfs-server-alpine
cap_add:
- SYS_ADMIN
environment:
- TZ=Europe/Berlin
- VERSION=latest
- SHARED_DIRECTORY=/nfsshare
ports:
- "2049:2049"
volumes:
- /volume1/Kids:/nfsshare
Odd, as privileged
should give you every capability. I wonder if there is something special about using it on a Synology?
Ok the problem is not solved. If you run the NFS Service on the host and then the container, the docker container is possible to start and load the kernel modules. But actually it is not working. So I think there is a limitation to use it on a synology.
Wouldn't it be better to use the Synology's built in NFS functionality anyway?
Synology use ecryptfs
. Synology does actually (since 4 years) not support nfs in combination with encrypted folders. That's the reason why..
Ah OK, so it's simply not going to work. I'll close then.
When starting on my Synology I get the following error.
privileged: true
is set. Someone can give me a hint what'S the problem?docker-compose.yml
Log