sjiveson / nfs-server-alpine

A handy Alpine Linux based NFS Server image running NFS v4 only, over TCP on port 2049
https://hub.docker.com/r/itsthenetwork/nfs-server-alpine/
GNU General Public License v3.0
292 stars 185 forks source link

exportfs: /nfsshare does not support NFS export #43

Open alexandruhog opened 3 years ago

alexandruhog commented 3 years ago

Hello!

I've been trying to run this image, but it seems I can not make it work.

This is the docker-compose.yml

version: "3"

services:
  nfs:
    image: itsthenetwork/nfs-server-alpine
    environment:
      SHARED_DIRECTORY: /nfsshare
    ports:
      - "2049:2049"
    volumes:
      - /nfsdata:/nfsshare
    restart: always
    privileged: true

Everytime I try to run it, I receive this log:

nfs    | Writing SHARED_DIRECTORY to /etc/exports file
nfs    | The PERMITTED environment variable is unset or null, defaulting to '*'.
nfs    | This means any client can mount.
nfs    | The READ_ONLY environment variable is unset or null, defaulting to 'rw'.
nfs    | Clients have read/write access.
nfs    | The SYNC environment variable is unset or null, defaulting to 'async' mode.
nfs    | Writes will not be immediately written to disk.
nfs    | Displaying /etc/exports contents:
nfs    | /nfsshare *(rw,fsid=0,async,no_subtree_check,no_auth_nlm,insecure,no_root_squash)
nfs    | 
nfs    | Starting rpcbind...
nfs    | Displaying rpcbind status...
nfs    |    program version netid     address                service    owner
nfs    |     100000    4    tcp6      ::.0.111               -          superuser
nfs    |     100000    3    tcp6      ::.0.111               -          superuser
nfs    |     100000    4    udp6      ::.0.111               -          superuser
nfs    |     100000    3    udp6      ::.0.111               -          superuser
nfs    |     100000    4    tcp       0.0.0.0.0.111          -          superuser
nfs    |     100000    3    tcp       0.0.0.0.0.111          -          superuser
nfs    |     100000    2    tcp       0.0.0.0.0.111          -          superuser
nfs    |     100000    4    udp       0.0.0.0.0.111          -          superuser
nfs    |     100000    3    udp       0.0.0.0.0.111          -          superuser
nfs    |     100000    2    udp       0.0.0.0.0.111          -          superuser
nfs    |     100000    4    local     /var/run/rpcbind.sock  -          superuser
nfs    |     100000    3    local     /var/run/rpcbind.sock  -          superuser
nfs    | Starting NFS in the background...
nfs    | rpc.nfsd: knfsd is currently down
nfs    | rpc.nfsd: Writing version string to kernel: -2 -3 +4 +4.1 +4.2
nfs    | rpc.nfsd: Created AF_INET TCP socket.
nfs    | rpc.nfsd: Created AF_INET6 TCP socket.
nfs    | Exporting File System...
nfs    | exporting *:/nfsshare
nfs    | exportfs: /nfsshare does not support NFS export
nfs    | Export validation failed, exiting...

Please help me!

denogio commented 3 years ago

Are you using overlayfs? Use something else, like zfs or vfs.

baturorkun commented 3 years ago

I have the same problem with Windows OS. What is the solution?

waterfallm commented 2 years ago

I have the same problem with Windows OS. What is the solution?

Same here using Docker Desktop on windows 10 tried changing storage-driver but no success