Repository navigation
Closed
Description
Running docker-compose commands fails when running from the integrated powershell terminal. Running same commands in the standalone powershell terminal works fine. Here's the failing message:
> docker-compose -f .\docker-compose.dev.yml pull
Pulling redis (redis:latest)...
latest: Pulling from library/redis
d13d02fa248d: Downloading [===> ] 1.867MB/30.11MB
a1846f364e39: Download complete
dba901efed8c: Download complete
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose\cli\main.py", line 68, in main
File "compose\cli\main.py", line 121, in perform_command
File "compose\cli\main.py", line 653, in pull
File "compose\project.py", line 512, in pull
File "compose\service.py", line 1031, in pull
File "compose\progress_stream.py", line 44, in stream_output
File "compose\progress_stream.py", line 63, in print_output_event
File "codecs.py", line 370, in write
File "site-packages\colorama\ansitowin32.py", line 40, in write
File "site-packages\colorama\ansitowin32.py", line 141, in write
File "site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
File "site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
IOError: [Errno 0] Error
Failed to execute script docker-compose
This looks like another instance of this issue - that one was reported to the docker repo, but the reporter does note that this only happens in the VS Code integrated terminal.
Also, please note, that I didn't have this problem up until today when I've installed the Fall Creators Update to Windows.
- VSCode Version: Code 1.17.2 (b813d12, 2017-10-16T13:59:46.104Z)
- OS Version: Windows_NT x64 10.0.16299
- Extensions:
| Extension | Author (truncated) | Version |
|---|---|---|
| ng-template | Ang | 0.1.7 |
| htmltagwrap | bra | 0.0.3 |
| jshint | dba | 0.10.15 |
| vscode-eslint | dba | 1.3.2 |
| EditorConfig | Edi | 0.11.0 |
| js-is-jsx | eg2 | 0.0.1 |
| tslint | eg2 | 1.0.11 |
| vscode-guid | hea | 1.2.0 |
| path-autocomplete | ion | 1.6.1 |
| vscode-github | Kni | 0.22.0 |
| graphql-for-vscode | kum | 1.6.2 |
| Angular-BeastCode | Mik | 5.0.8 |
| HTMLHint | mka | 0.4.0 |
| azure-account | ms- | 0.1.3 |
| debugger-for-chrome | msj | 3.4.0 |
| angular2-inline | nat | 0.0.17 |
| createGUID | nwa | 0.0.2 |
| vscode-docker | Pet | 0.0.20 |
| ejs-language-support | Qas | 0.0.1 |
| vscode-icons | rob | 7.15.0 |
| stylelint | shi | 0.30.0 |
| Align | ste | 0.2.0 |
| jsx-snippets | Twe | 0.0.1 |
| gitblame | wad | 2.2.0 |
| twig | wha | 1.0.2 |
| jinja | who | 0.0.8 |
| change-case | wma | 1.0.0 |
(3 theme extensions excluded)
Steps to Reproduce:
Reproduces without extensions: Yes/No
Reacted by Stanislav Zaicev, Martin Peck, stwessl, Maxim Kornienko, Oleg, Andrey Golovin, Marc Trudel, Samuel Hilson, John Nelson, AustinWinstanley and 64 more
Activity
Tyriar commentedon Oct 20, 2017
Jacek Dargiel (@jacek-dargiel) are you using a python virtual environment?
jacek-dargiel commentedon Oct 23, 2017
Not sure. How can I check? I do have python 2.7 installed locally.
Ahryman40k commentedon Oct 24, 2017
Hi.
It seems I have the same issue with docker and vscode since I installed fall creator 2 days ago.
In my case I have python 2.7 installed and python extensions in vscode.
TheWozMSN commentedon Oct 24, 2017
Docker --version and Docker-Machine --version works as expected. Only Docker-Compose --version is failing in my preliminary test. Hope this helps
Tyriar commentedon Oct 26, 2017
Jacek Dargiel (@jacek-dargiel) you would probably know if you were using it 🙂
Ahryman40k (@Ahryman40k) Doug Woznicki (@TheWozMSN) are you both on Windows?
TheWozMSN commentedon Oct 26, 2017
Ahryman40k commentedon Oct 26, 2017
Daniel Imms (@Tyriar)
I'm using Windows 10 Pro.
jrock2004 commentedon Oct 27, 2017
Daniel Imms (@Tyriar) do I need to install python for docker compose to work in vscode? I got a brand new windows 10 installed running 1709 and I have the same issue
TheWozMSN commentedon Oct 27, 2017
Further Comment. Docker-Compose works in a regular powershell command window. Not with Integrated Powershell
83 remaining items
jayshrivastava commentedon Mar 14, 2018
I was having a similar problem (post patch I assume v. 1.18.0 of Docker Compose), so I came here. In case anyone else has the same issue, I'll leave this for reference.
It was a longpaths issue for me due to Jenkins giving the project folder a unique code. I was able to complete my compose using powershell, but Jenkins gave my these errors:
Basically, my copy of the www folder in my compose file failed because the path was too long. I had to enable long paths on the windows server I had docker and jenkins installed on.
All I had to do was follow this:
https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/
bapcyk commentedon Mar 18, 2018
I have the same problems but this is not related to:
And this bug happens very often, for example, several times in a row
ronaldgreeff commentedon Mar 22, 2018
I have the same error and all I'm doing is running python code with no modules (also no virtualenv)
If I sequentially "run python file in terminal", the error references random lines each time (line 15, line 25, line 34) and then works, then throws the error again.
Windows 10, Python 2.7.14
EDIT: I posted this comment before finding this - https://www.bountysource.com/issues/52206767-random-io-errors-on-windows-10-0-16299-64. Apparently it's a bug in Win 10.
Wosi commentedon Mar 25, 2018
I was facing the same issues in November 2017 with the Fall Creators Update. I was able to delay this update until today. Now I'm unable to work with VSCode since all my compile and test scripts don't work anymore. I probably have to look for a different editor while this issue is open ;-(
I really beg you to fix this issue as soon as possible! I really don't want to abandon my beloved VSCode.
My original issue was this: #38068
jongio commentedon Mar 25, 2018
I think it has something to do with print function - I was able to get around it by wrapping my print calls in a try block and then using print() in the except block, like this:
// Using python click
I've also had luck putting the futures print at the top of my python script:
from __future__ import print_functionNicolasDorier commentedon Mar 28, 2018
Same issue here. Same command work in a separate powershell, not in the integrated terminal.
raokrutarth commentedon Apr 3, 2018
The issue is still not resolved. Please take a look. Steps:
recursive function with
printstatements. executes some of the statements and then randomlyIOError: [Errno 0] ErrorVersion 1.21.1
Commit 79b44aa
Date 2018-03-14T14:47:13.351Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture ia32
Tyriar commentedon Apr 4, 2018
raokrutarth (@raokrutarth) it's an issue in Windows which takes a while to roll out.
Wosi commentedon Apr 6, 2018
Daniel Imms (@Tyriar) Is there a fix on the way? How can I get it earlier?
Tyriar commentedon Apr 6, 2018
Christopher Wosinski (@Wosi) it's fixed in the Windows Insiders channel #36630 (comment), you might not want to commit to that just to fix this though. It should be coming in the upcoming Spring release of Windows w
Box-Of-Hats commentedon Apr 17, 2018
Appears to be fixed in the latest Windows 10 Spring Creators Update
dllerena commentedon May 1, 2018
Jake (@Box-Of-Hats) It was fixed on Windows 1803!! I installed it and tested it!! YAY!!!
Tyriar commentedon May 1, 2018
🎉 Closing this off as people are confirming it's fixed! If you're experiencing this problem make sure you have installed the Windows 10 April Update (1803).