Question

installing Docker

Posted January 27, 2021 730 views
Docker

I love your tutorial, and I want it to work for me :)
I’m using Kubuntu 20.10 on an old Mac.
Here is how far I got today with the install:

trude@trude-MacBookPro:~$ sudo chmod +x /usr/local/bin/docker-compose
trude@trude-MacBookPro:~$ 
trude@trude-MacBookPro:~$ docker-compose --version
bash: /snap/bin/docker-compose: No such file or directory
trude@trude-MacBookPro:~$ 
trude@trude-MacBookPro:~$ docker-compose --version
bash: /snap/bin/docker-compose: No such file or directory
trude@trude-MacBookPro:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
trude@trude-MacBookPro:~$ export PATH="/usr/local/bin:$PATH"
trude@trude-MacBookPro:~$ docker-compose --version
docker-compose version 1.21.2, build a133471
trude@trude-MacBookPro:~$ docker-compose -f docker.dev.yml up
ERROR: .FileNotFoundError: [Errno 2] No such file or directory: './docker.dev.yml'
trude@trude-MacBookPro:~$ export PATH="/usr/local/bin:$PATH"
trude@trude-MacBookPro:~$ docker-compose -f docker.dev.yml up
ERROR: .FileNotFoundError: [Errno 2] No such file or directory: './docker.dev.yml'
trude@trude-MacBookPro:~$ 

How can I resolve this? Please :)
Thank you

edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there @trudeicebergh,

I’ve seen a similar discussion here, where they suggest reinstalling docker-compose with and adding the executable to /usr/bin instead:

pip3 install --upgrade --force-reinstall --no-cache-dir docker-compose && ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose

After that, try restarting your shell (open and close the terminal).
Let me know how it goes.
Regards,
Bobby