-
Notifications
You must be signed in to change notification settings - Fork 5
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
Problems on Windows 10 Home #50
Comments
thank you for documenting, let us know if further help is needed. |
I've got some clues finally. Docker Toolbox (what @mxmoss and other Windows < Window 10 Pro users have) uses Docker Machine to create and manage the VirtualBox machines on Windows. It turns out that all of this magic also works on Linux hosts, but nobody uses it because Docker is native for Linux - no virtual machine required. So I installed Docker Machine and VirtualBox on Linux and created a Docker machine. I was able to duplicate the error @mxmoss got. But several hours of searching and experimentation didn't come up with a solution. This is the error message:
The problem is that the API container is supposed to mount "." - the repository - into An even simpler test:
Even an explicit mount of an absolute host path using a There are two use cases for Docker Machine:
So I'm not optimistic about Docker coming up with a solution. There are 778 issues open on Docker Machine (https://github.com/docker/machine/issues), some of which look relevant but date back over a year. |
So is the fix for this issue to change the "shebang" lines in the scripts from |
@nam20485 Not really - it turns out the problem is probably a silent failure of Docker mounting the host repository into `/code/ in the container. :-( |
Fair enough. Ignore my previous comments, I was confused with old info but I think I am up to speed now. |
A bit of an update - I spent a few hours yesterday testing on Windows 10 Pro and was unable to find a simple, repeatable way to get this task done. So I've gone nuclear ;-) Seriously, what I did was create a new Dockerfile / compose file / script combo that doesn't mount any host files into a container. Instead it copies the inputs to the image and copies the resulting code back out to the repo. And it's a one-step process - you edit the environment variables, copy your backup file in and run a script. When it's done you have the database image running in its container, the API image running in it's container with the scaffolding code. When you terminate it, the script copies the code to your repo. |
Fix is in pull request #49 |
@mxmoss has run into an error starting the API container on a Windows 10 Home / Docker Toolbox configuration. @nam20485 and I have been able to reproduce it with Docker for Windows from WSL Ubuntu, but that's not a supported Docker use case. I can reproduce it on this repo with the sample "dead_songs" dataset, and I'm going to attempt to troubleshoot it with Docker Machine on Linux,
Meanwhile, on Docker for Windows on Windows 10 Pro, both repos work if you do the build and start from PowerShell.
The text was updated successfully, but these errors were encountered: