csharpfritz / csharp_with_csharpfritz

Show notes, slides, and samples from the CSharp with CSharpFritz show
MIT License
659 stars 215 forks source link

docker-compose up is erring out #41

Closed sandeepapps87 closed 4 years ago

sandeepapps87 commented 4 years ago

Getting below error while executing docker-compose up command. I am in the correct directory and running the command. Let me know if it has anything do with any more configuration that is needed before running the docker command or it is something else.

Thanks in advance. docker-compose up Traceback (most recent call last): File "site-packages/urllib3/connectionpool.py", line 677, in urlopen File "site-packages/urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1252, in request File "http/client.py", line 1298, in _send_request File "http/client.py", line 1247, in endheaders File "http/client.py", line 1026, in _send_output File "http/client.py", line 966, in send File "site-packages/docker/transport/unixconn.py", line 43, in connect FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "site-packages/requests/adapters.py", line 449, in send File "site-packages/urllib3/connectionpool.py", line 727, in urlopen File "site-packages/urllib3/util/retry.py", line 403, in increment File "site-packages/urllib3/packages/six.py", line 734, in reraise File "site-packages/urllib3/connectionpool.py", line 677, in urlopen File "site-packages/urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1252, in request File "http/client.py", line 1298, in _send_request File "http/client.py", line 1247, in endheaders File "http/client.py", line 1026, in _send_output File "http/client.py", line 966, in send File "site-packages/docker/transport/unixconn.py", line 43, in connect urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "site-packages/docker/api/client.py", line 205, in _retrieve_server_version File "site-packages/docker/api/daemon.py", line 181, in version File "site-packages/docker/utils/decorators.py", line 46, in inner File "site-packages/docker/api/client.py", line 228, in _get File "site-packages/requests/sessions.py", line 543, in get File "site-packages/requests/sessions.py", line 530, in request File "site-packages/requests/sessions.py", line 643, in send File "site-packages/requests/adapters.py", line 498, in send requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "docker-compose", line 3, in File "compose/cli/main.py", line 67, in main File "compose/cli/main.py", line 123, in perform_command File "compose/cli/command.py", line 69, in project_from_options File "compose/cli/command.py", line 132, in get_project File "compose/cli/docker_client.py", line 43, in get_client File "compose/cli/docker_client.py", line 170, in docker_client File "site-packages/docker/api/client.py", line 188, in init File "site-packages/docker/api/client.py", line 213, in _retrieve_server_version docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) [1226] Failed to execute script docker-compose

csharpfritz commented 4 years ago

I'm not experiencing this error on my machine.

Are you blocking port sharing on your machine? Is port 8888 available?

sandeepapps87 commented 4 years ago

I'm not experiencing this error on my machine.

Are you blocking port sharing on your machine? Is port 8888 available?

Thanks for the quick reply. Now it worked after changing the port in compose file.

csharpfritz commented 4 years ago

Glad to hear it... I will add a note to the README about the port