Coder Social home page Coder Social logo

Comments (5)

aaron-pham avatar aaron-pham commented on June 16, 2024 1

I found that the NFS share must be mounted to the host as well.
So in your docker-compose.yml

volumes:
      - <directory that exist on host>:/home
      - type: bind
         source: /etc
         target: /home
         read_only: false

And this should get rid of the error.

from docker-nfs-server.

james-mchugh avatar james-mchugh commented on June 16, 2024

I'm seeing the same issue.

from docker-nfs-server.

finalspy avatar finalspy commented on June 16, 2024

same for me ...

from docker-nfs-server.

bargergo avatar bargergo commented on June 16, 2024

@aaron-pham Could you show an example with more details? (For example a full docker-compose.yml)

I have tried it like this:

version: "2.1"
services:
  nfs-server:
    image: erichough/nfs-server:2.2.1
    container_name: nfs-server
    privileged: true
    volumes:
      - /F/tusfiles:/home/user/share
      - type: bind
        source: /F/tusfiles
        target: /home/user/share
        read_only: false
      - /F/tusfiles/exports.txt:/etc/exports:ro  
    ports:
      - 2049:2049

But I got this error:

ERROR: Duplicate mount points: [/F/tusfiles:/home/user/share:rw, /F/tusfiles:/home/user/share:rw]

(I get the same error if the source is /etc)

from docker-nfs-server.

mcclumpherty avatar mcclumpherty commented on June 16, 2024

What if I don't want to have a bind mount to the host? Is there any way to share the folder without doing that?

from docker-nfs-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.