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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.