Reputation: 291
I'm trying to develop a Laravel 8 app using docker, I previously have installed docker 20.10.3 on my ubuntu 20 pc, I followed every step for Linux installation but, when I type ./vendor/bin/sail up I get:
./vendor/bin/sail: line 42: docker-compose: command not found
./vendor/bin/sail: line 44: docker-compose: command not found
./vendor/bin/sail: line 280: docker-compose: command not found
I don't know what could be because everything went fine:
Upvotes: 0
Views: 6031
Reputation: 111
docker-compose is not installed to your system. To install it apply below command :
sudo apt install docker-compose
Upvotes: 6
Reputation: 816
check official docker documentation and add docker-compose in the installation, you will be fine and then it will upgrade docker-compose along with docker each time.
Upvotes: 0
Reputation: 377
if you checked the sail on github for this line 42 https://github.com/laravel/sail/blob/1.x/bin/sail you will find that it's using docker-compose command , and looks like it's not installed on your machine. you can follow this link to install it https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04 Then everything supposed to be working fine again
Upvotes: 9