'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!



Solution 1:[1]

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

sudo systemctl start docker

fixed it for me

Solution 2:[2]

Please re-install docker-compose

Example:

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

$ sudo chmod +x /usr/local/bin/docker-compose

$ docker-compose --version

Solution 3:[3]

Meight not be an answer but: I rerolled back to Ubuntu and updated the kernel to work with "Ryzen 5 4500U"

Working fine now, still not knowing why it's not working on fedora :s

Solution 4:[4]

I had a silly issue. I restarted the machine and forgot to check if the docker desktop is running or not. Make sure your docker instance is running. Hope it helps someone like me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Axl Jones
Solution 2 Gregor Wedlich
Solution 3 R. Polito
Solution 4 Sundeep