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,370 points
22,348 views
please solve this issue, if any one knows.

@Rahul, 

Have you gone through @Omkar's solution!! I hope that will help you to resolve your issue.

1 answer to this question.

+2 votes
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
• 69,220 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

Run this command.

docker build -t mytag .

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 aryya
• 7,460 points
928 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
48,868 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,370 points
1,693 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,370 points
637 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,436 views
+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
1,116 views
+1 vote
1 answer
+2 votes
5 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
• 69,220 points
14,714 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
6,555 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP