How to fix "failed to execute script docker compose" error on windows 7?

0 votes

Hi. I'm using docker on windows 7 and when I run the docker-compose up command, I get the following error.

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose\cli\main.py", line 88, in main
  File "compose\cli\main.py", line 140, in perform_command
  File "compose\cli\main.py", line 247, in build
  File "compose\project.py", line 313, in build
  File "compose\service.py", line 804, in build
  File "site-packages\docker\api\build.py", line 205, in build
  File "site-packages\docker\utils\decorators.py", line 47, in inner
  File "site-packages\docker\api\client.py", line 175, in _post
  File "site-packages\requests\sessions.py", line 522, in post
  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 1042, in request
  File "httplib.py", line 1082, in _send_request
  File "httplib.py", line 1038, in endheaders
  File "httplib.py", line 886, in _send_output
  File "httplib.py", line 855, in send
  File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped
  File "site-packages\docker\transport\npipesocket.py", line 159, in sendall
  File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped
  File "site-packages\docker\transport\npipesocket.py", line 154, in send
pywintypes.error: (232, 'WriteFile', 'The pipe is being closed.')
Failed to execute script docker-compose


How do i fix this?

Jun 27, 2018 in Blockchain by slayer
• 29,040 points
836 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote
Best answer

It seems like the container is not built properly. Try 

$ docker build 

command followed by 

$ docker-compose up 

(run the cmd with admin privileges)

If that does not work, check if you have the latest docker compose and if you don't, upgrade it and run the commands again.

answered Jun 27, 2018 by Omkar
• 65,810 points

selected Jun 27, 2018 by slayer
How to update docker-compose?

Hey @Rashmi, try this:

$ sudo apt-get update docker-compose
Thanks for the command @John but this command is not working. I executed this command and I got no error but when I checked the version, it shows the same version.
@Rashmi,

Maybe you already have the latest version installed. That's why even after running the command, you have the same version. What version of docker-compose are you using?
No, I don't have the latest version. The latest version is 1.24.0 but I have version 1.10.0.

I used pip to upgrade it. Command:

$ pip install docker-compose

Related Questions In Blockchain

0 votes
1 answer

Issue to run curl command in windows 7 Docker Quickstart Terminal

Actually, the issue is more likely that ...READ MORE

answered Jun 27, 2018 in Blockchain by ariaholic
• 7,320 points
29 views
0 votes
10 answers

How to solve gradle build failed error?

I migrated the project to a different ...READ MORE

answered Dec 7, 2018 in Blockchain by Rajat
3,719 views
0 votes
1 answer

How to solve "Failed to deserialize creator identity error"?

It seems like the problem is caused ...READ MORE

answered Jul 13, 2018 in Blockchain by slayer
• 29,040 points
233 views
0 votes
1 answer

How to solve "Failed to get identity 'admin'" error?

It seems like this error is caused ...READ MORE

answered Jul 13, 2018 in Blockchain by slayer
• 29,040 points
17 views
0 votes
1 answer
+1 vote
1 answer

I am unable to change port of composer-rest-server. Please help!

Use full format for running a business ...READ MORE

answered Mar 27, 2018 in Blockchain by Christine
• 15,790 points
205 views
+1 vote
1 answer
+1 vote
4 answers

How to install Ganache.appx on Windows 7

Go to https://github.com/trufflesuite/ganache/releases there are a set of ...READ MORE

answered Aug 17, 2018 in Blockchain by Omkar
• 65,810 points
554 views
0 votes
4 answers

Hyperledger: byfn.sh up: ERROR !!! FAILED to execute End-2-End Scenario.

Try these commands $ docker rm -f $(docker ...READ MORE

answered Nov 28, 2018 in Blockchain by kartik chauhan
789 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.