Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose: command not found #688

Closed
AimForNaN opened this issue Apr 2, 2024 · 3 comments
Closed

docker-compose: command not found #688

AimForNaN opened this issue Apr 2, 2024 · 3 comments

Comments

@AimForNaN
Copy link

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
Copy link
Member

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

sail/bin/sail

Lines 162 to 167 in c4fcfa4

# Define Docker Compose command prefix...
if docker compose &> /dev/null; then
DOCKER_COMPOSE=(docker compose)
else
DOCKER_COMPOSE=(docker-compose)
fi

@driesvints
Copy link
Member

@AimForNaN Don't you have docker compose available?

@AimForNaN
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants