umbrel
umbrel copied to clipboard
Can't recognize "docker-compose" on Centos 7.9
[centos@ip-172-2-7-1 ~]$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[centos@ip-172-2-7-1 ~]$ docker-compose -v
docker-compose version 1.23.2, build 1110ad01
[centos@ip-172-2-7-1 ~]$ sudo ./scripts/start
This script requires "docker-compose" to be installed
[centos@ip-172-2-7-1 ~]$
I have the same issue on MacOS Big Sur (Version 11.1)
Sudo resets $PATH, along with many other environment variables, for security reasons. So if you type sudo
it changes the $PATH to the PATH of root.
sudo env "PATH=$PATH" fixed this for me.