Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exportfs: /nfsshare does not support NFS export #43

Open
alexandruhog opened this issue Nov 8, 2020 · 3 comments
Open

exportfs: /nfsshare does not support NFS export #43

alexandruhog opened this issue Nov 8, 2020 · 3 comments

Comments

@alexandruhog
Copy link

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
Copy link

denogio commented Mar 16, 2021

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

@baturorkun
Copy link

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

@waterfallm
Copy link

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

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

No branches or pull requests

4 participants