laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.65k stars 470 forks source link

docker-compose: command not found #688

Closed AimForNaN closed 5 months ago

AimForNaN commented 5 months ago

Sail Version

Whatever laravelsail/php83-composer:latest comes with, I guess.

Laravel Version

11

PHP Version

8.3.4

Operating System

Linux

OS Version

Linux 6.8 (Arch Linux)

Description

Both during installation and when running sail up I get the following errors:

./vendor/laravel/sail/bin/sail: line 201: docker-compose: command not found
./vendor/laravel/sail/bin/sail: line 583: docker-compose: command not found

I'm using Zsh as my shell and Docker v26.0.0. I suppose I can create an alias in the meantime.

Steps To Reproduce

curl -s "https://laravel.build/example-app" | bash
cd example-app
./vendor/bin/sail up
driesvints commented 5 months ago

Wondering how this is possible because we have a check for this:

https://github.com/laravel/sail/blob/c4fcfa4d06b496b8bff7e6cccd1c32cc8aeea418/bin/sail#L162-L167

driesvints commented 5 months ago

@AimForNaN Don't you have docker compose available?

AimForNaN commented 5 months ago

Turns out it was a user error. I needed to install the docker-compose package.