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

Adding mount with similar machine name causes error #66

Closed
awudarowicz opened this issue Oct 24, 2016 · 3 comments
Closed

Adding mount with similar machine name causes error #66

awudarowicz opened this issue Oct 24, 2016 · 3 comments
Labels

Comments

@awudarowicz
Copy link

awudarowicz commented Oct 24, 2016

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

@tonivdv tonivdv added the bug label Oct 24, 2016
@tonivdv
Copy link
Member

tonivdv commented Oct 24, 2016

I'll try to have a look at this as soon as I can. If you have a fix feel free to provide a PR.

@tonivdv
Copy link
Member

tonivdv commented Oct 25, 2016

Can you try #67

@awudarowicz
Copy link
Author

Works great, problem solved :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants