-
Notifications
You must be signed in to change notification settings - Fork 73
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
first step in course now working on Windows 7: docker-compose returned -1 #19
Comments
Hi!
Looks like it is saying it can't find a file on the very bottom of that
stack trace (whose error message I think may be the important one).
This issue opened recently might be related -
docker/for-win#316
…On Sat, Dec 17, 2016 at 12:25 Adam Klein ***@***.***> wrote:
Hey @fideloper <https://github.com/fideloper> ,
I am trying to go through your course. I have Windows 7 and have all the
latest downloads for the docker toolbox.
After I pull your repo, I am struggling with the first step. It does not
work when I do a docker-composer:
$ cd php-app/
$ docker-compose up -d
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose\cli\main.py", line 65, in main
File "compose\cli\main.py", line 117, in perform_command
File "compose\cli\main.py", line 849, in up
File "compose\project.py", line 372, in up
File "compose\project.py", line 539, in warn_for_swarm_mode
File "site-packages\docker\api\daemon.py", line 33, in info
File "site-packages\docker\utils\decorators.py", line 47, in inner
File "site-packages\docker\client.py", line 139, in _get
File "site-packages\requests\sessions.py", line 488, in get
File "site-packages\requests\sessions.py", line 475, in request
File "site-packages\requests\sessions.py", line 596, in send
File "site-packages\requests\adapters.py", line 423, in send
File "site-packages\requests\packages\urllib3\connectionpool.py", line 595, in urlopen
File "site-packages\requests\packages\urllib3\connectionpool.py", line 363, in _make_request
File "httplib.py", line 1057, in request
File "httplib.py", line 1097, in _send_request
File "httplib.py", line 1053, in endheaders
File "httplib.py", line 897, in _send_output
File "httplib.py", line 859, in send
File "site-packages\docker\transport\npipeconn.py", line 31, in connect
File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped
File "site-packages\docker\transport\npipesocket.py", line 49, in connect
pywintypes.error: (2, 'WaitNamedPipe', 'The system cannot find the file specified.')
docker-compose returned -1
I don't understand what is wrong here, and the only thing I can find when
searching around is with regards to Windows 7 has issueswith really long
path lengths. However, I do not understand this as the directory I am
working in is /c/w/php-app so I can not see how this would effect things.
Anyways, would really like your ideas here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAch071dmSaY7kRBOkYkVu0bXA-70udWks5rJCkngaJpZM4LP8t1>
.
|
Hey @fideloper , Well, it looks like I had this setup in my path: C:\Users\MYUSERNAME\AppData\Local\Programs\Python\Python35-32\Scripts I don't know how that was set or what installed that, perhaps docker toolbox? Not sure, but once I changed the path to be pointed to python2.7 in my windows environment, then everything started working correctly and it pulled all the images that I needed for this. Thanks for your prompt response. Adam |
this does not solve the problem on windows 7 |
Make sure that you've built entire project and then instead of Windows Commandline use Docker CLI (do not confuse with normal Windows Powershell!) |
Run docker-compose with Docker Quickstart Terminal. It will solve your error |
check your local machine/server docker is running |
I'm using docker-toolbox in Windows and ran into this problem. I solved it by making sure the environment variables were properly set. My docker-machine is called toolbox. I made sure it was running and I ran |
Yes @ranneyd it fixe it. Thanks |
My solution based on @ranneyd answer (I didn't know how my docker-machine is called):
I ran |
I tried to run @TheGeniesis solution in Git shell for Windows for project https://github.com/andreaskoch/dockerized-magento but all I got was errors:
How to run this command under Git shell? |
Ok, I managed to get over this problem. |
Open Terminal Gil shell :
|
@fallphenix don't You see that I tried this? Take a closer look at my first post in this thread. |
In case it can help somebody, I think I may have met the same trap :)
In this case, you may consider trying this one: |
Few helping notes: if you run it from bash script, your command is: important note |
The way I solved it is I went inside the docker host, installed docker-compose there, copy docker docker-compose.yml file there, and run the compose there.
The windows DOS, cygwin, powershell, whatever is causing all these confusions. |
For anyone using Git Bash, for a more permanent solution, you can modify the file: |
Hey @fideloper ,
I am trying to go through your course. I have Windows 7 and have all the latest downloads for the docker toolbox.
After I pull your repo, I am struggling with the first step. It does not work when I do a docker-composer:
I don't understand what is wrong here, and the only thing I can find when searching around is with regards to Windows 7 has issueswith really long path lengths. However, I do not understand this as the directory I am working in is
/c/w/php-app
so I can not see how this would effect things.Anyways, would really like your ideas here.
The text was updated successfully, but these errors were encountered: