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

Importing from different directory than where import file in causes server name to include all folder names #25

Open
dolan-a opened this issue Sep 14, 2017 · 1 comment

Comments

@dolan-a
Copy link

dolan-a commented Sep 14, 2017

If I import in the following manner: machine-import home/myfiles/machine1.zip, in .docker/machine/machines, the folders home/myfiles/machine1 are created.

I initially thought the problem was as described in #6 since this was a server with no docker machines yet, but I used the mkdir command mentioned there, and still got an error about config.json not existing. But in my case, it was saying it didn't exist in ".docker/machine/machines/home".

The workaround was to just cd to the directory (e.g. home/myfiles) before running machine-import.

@burnedikt
Copy link
Contributor

Faced the exact same problem today. Fix should be easy enough by just taking the actual filename (without the preceding path) in https://github.com/bhurlow/machine-share/blob/master/import.js#L29

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

2 participants