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\", line 88, in main
  File "compose\cli\", line 140, in perform_command
  File "compose\cli\", line 247, in build
  File "compose\", line 313, in build
  File "compose\", line 804, in build
  File "site-packages\docker\api\", line 205, in build
  File "site-packages\docker\utils\", line 47, in inner
  File "site-packages\docker\api\", line 175, in _post
  File "site-packages\requests\", line 522, in post
  File "site-packages\requests\", line 475, in request
  File "site-packages\requests\", line 596, in send
  File "site-packages\requests\", line 423, in send
  File "site-packages\requests\packages\urllib3\", line 595, in urlopen
  File "site-packages\requests\packages\urllib3\", line 363, in _make_request
  File "", line 1042, in request
  File "", line 1082, in _send_request
  File "", line 1038, in endheaders
  File "", line 886, in _send_output
  File "", line 855, in send
  File "site-packages\docker\transport\", line 22, in wrapped
  File "site-packages\docker\transport\", line 159, in sendall
  File "site-packages\docker\transport\", line 22, in wrapped
  File "site-packages\docker\transport\", 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,350 points
please solve this issue, if any one knows.


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,230 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.

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,450 points
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
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,350 points
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,350 points
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 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 vote
1 answer
+2 votes
5 answers

How to install Ganache.appx on Windows 7

Go to there are a set of ...READ MORE

answered Aug 17, 2018 in Blockchain by Omkar
• 69,230 points
0 votes
4 answers

Hyperledger: 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
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP