question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker-compose up fails when run on a docker version 1.7 up of installed through docker toolbox on win 7

See original GitHub issue
~ docker-compose up
Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose\cli\main.py", line 68, in main
  File "compose\cli\main.py", line 118, in perform_command
  File "compose\cli\main.py", line 928, in up
  File "compose\project.py", line 414, in up
  File "compose\project.py", line 640, in warn_for_swarm_mode
  File "site-packages\docker\api\daemon.py", line 90, in info
  File "site-packages\docker\utils\decorators.py", line 46, in inner
  File "site-packages\docker\api\client.py", line 189, 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 1042, in request
  File "httplib.py", line 1082, in _send_request
  File "httplib.py", line 1038, in endheaders
  File "httplib.py", line 882, in _send_output
  File "httplib.py", line 844, 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 50, in connect
pywintypes.error: (2, 'WaitNamedPipe', 'The system cannot find the file specified.')
Failed to execute script docker-compose

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisbullcommented, Oct 16, 2017

– SOLUTION – (Warning: this will remove all your docker settings and data, so use caution, and at own risk)

  1. make sure you are using the latest Docker and docker-compose (ya, I know this is obvious)
  2. Reset Docker and Remove all data -> Docker -> Preferences -> Reset -> “Remove all data” and “Reset to factory defaults”
  3. Re-run docker-compose up - And Voila!

Basically in the initial build of Postgres, if you built the image with another app, it doesn’t run the init.db thus does not install the module for uuid-ossp. With the clean reset, it forces Docker to rebuild the Postgres image with the init.db file. (Well at least this is my theory, and why this process worked for me.)

0reactions
koistyacommented, Feb 3, 2020

You can now launch the API app without a Docker.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Compose release notes
Dependencies update: Updated Docker CLI version used in CI to v20.10.17. Dependencies update: Bumped github.com/containerd/containerd from 1.6.6 to 1.6.7.
Read more >
Why is Docker installed but not Docker Compose?
docker -compose from the repository is in version 1.8.0 (at least at me). This docker-compose version does not support configuration files in version...
Read more >
Can't mount a volume on Windows 7 · Issue #607 - GitHub
I'm getting this error when I run docker-composer up : ERROR: for php Cannot create container for service php: Invalid bind mount spec...
Read more >
How To Install Docker on Windows 7/8/10 Home and Pro
b – Run the Docker Toolbox installer for Windows. c – Run the Docker Quickstart for Windows. 2 – Install Docker on Windows...
Read more >
Install using Docker Compose - Alfresco Docs
Check system start up · Open a new terminal window. · Change directory to the docker-compose folder that you created in the deployment...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found