Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker-compose exceptions

Overflow! I tried to transfer my docker-compose script from my ubuntu-workstation to my fedora laptop. when hitting

docker-compose up

I get following exception;

[polito@localhost dev]$ docker-compose up
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 677, in urlopen
File "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 "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 "requests/adapters.py", line 449, in send
File "urllib3/connectionpool.py", line 727, in urlopen
File "urllib3/util/retry.py", line 403, in increment
File "urllib3/packages/six.py", line 734, in reraise
[...]

What I tried: After googleing I found: deleting and reinstalling - did not work either.

Any idea how to fix?

Greetings!

like image 834
R. Polito Avatar asked Dec 30 '22 20:12

R. Polito


2 Answers

Had the same issue on my side. The docker daemon simply wasn't up.

sudo systemctl start docker

fixed it for me

like image 147
Axl Jones Avatar answered Jan 05 '23 16:01

Axl Jones


Please, follow these steps: https://docs.docker.com/engine/install/linux-postinstall/. It helped me.

like image 26
Thiago Petréllio Avatar answered Jan 05 '23 16:01

Thiago Petréllio