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

Accessing the share from an external device #75

Open
pdm-pcb opened this issue Oct 4, 2022 · 0 comments
Open

Accessing the share from an external device #75

pdm-pcb opened this issue Oct 4, 2022 · 0 comments

Comments

@pdm-pcb
Copy link

pdm-pcb commented Oct 4, 2022

Hello there. I was able to set this container up with ease and confidence, so thank you for that.

I've run into a bit of a knowledge gap though - I'm not sure how to a) ensure devices external to the host (but still on the host's LAN) will be able to access the share, and b) have that functionality working on Windows (10 Pro). At present, my docker-compose.yaml looks like this:

  nfs-server:
    image: erichough/nfs-server
    container_name: nfs-server
#    environment:
#      - NFS_DISABLE_VERSION_3=true
    volumes:
      - /mnt/longjump/media:/nfs
      - /mnt/longjump/docker/container-data/nfs-server/exports.txt:/etc/exports:ro
      - /lib/modules:/lib/modules:ro
    cap_add:
      - SYS_ADMIN
      - SYS_MODULE
    networks:
      - reverse_proxy
    ports:
      - 111:111/udp
      - 2049:2049

If I don't forward :111, I am able to mount it referring to the container's IP from the host, as your readme suggests. And whether or not I permit NFS3, Windows just refuses to cooperate externally. I haven't tried an external Linux client yet, but I have a feeling that'll work just fine.

I originally tried without adding it to the reverse_proxy network, but it went ahead and created its own default network rather than using host or bridge. Obviously I'm least certain of what's right with this parameter specifically. =)

For completeness' sake, here's the command I'm using on Windows (with the NFS feature enabled, of course).
mount -o anon \\10.0.0.1\nfs Z:
or
mount -o anon \\192.168.4.10\nfs Z:

I can SSH from the Windows machine to the server via both of those NICs, so the fundamentals are in order. Or, the fundamentals I understand, anyway. =)

Any pointers would be much appreciated!

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

1 participant