Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Adding mount with similar machine name causes error #66

@awudarowicz

Description

@awudarowicz

When we have for example two machines with similar names:

- machine30
- machine30trans

And we want to mount these two machines with docker-machine-nfs there is a problem when:

  1. firstly we try to mount machine30trans - OK
  2. secondly we try to mount machine30 - FAIL with message:
exports:2: got host/group with no directory?: trans

after running above instructions /etc/exports looks like:

trans
# docker-machine-nfs-begin machine30
/Users 192.168.99.100 -alldirs -mapall=1440676671:1381159979
# docker-machine-nfs-end machine30

IMO it's because there is a bug somewhere in code responsible for replacing content in /etc/exports.
For example when we want to mount machine30 - script makes search and replace texts which begins with machine30 word and when there is already mounted machine30trans - script removes only machine30 text and left unnecessary trans word.

The problem doesn't occurs when we firstly mount machine30 and secondly machine30trans

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions