The Docker Compose was initially installed separated from the Docker cli itself, but since 2023 it was incorporated into Docker installation being present in Docker Desktop installations. Therefore, docker-compose should be replaced with docker compose and other minor changes could be checked and applied as needed.
Context
I got an error while setting up my Docker environment for the project, just noticed that the command called for the composer was using hyphen, so it was a matter of updating the docker/setup.sh file with proper command and it all ran smoothly.
Process
In order to reproduce the issue one should:
Fork the repo
Clone it locally
Created the desired branch
Make the docker/setup.sh file executable
Execute the docker/setup.sh file
See a command not found for docker-compose but also a successful message printed by the script.
Expected result
Project setup using docker and documentation updated regarding Docker Compose V2.
Current result
The docker/setup.sh presents a successful message but nothing is done by the script due to a docker-compose command not being found.
Possible Fix
A simple fix for the setup to work is to update the setup.sh replacing the hyphen for a space on the docker compose command. But all documentation should be checked afterwards.
Closing this issue as Won't Fix.
After checking other tasks I understood that this issue does not make sense as we are planning on migrating from docker to Laravel Sail.
Description
The Docker Compose was initially installed separated from the Docker cli itself, but since 2023 it was incorporated into Docker installation being present in Docker Desktop installations. Therefore, docker-compose should be replaced with docker compose and other minor changes could be checked and applied as needed.
Context
I got an error while setting up my Docker environment for the project, just noticed that the command called for the composer was using hyphen, so it was a matter of updating the docker/setup.sh file with proper command and it all ran smoothly.
Process
In order to reproduce the issue one should:
docker/setup.sh
file executabledocker/setup.sh
filecommand not found
for docker-compose but also a successful message printed by the script.Expected result
Project setup using docker and documentation updated regarding Docker Compose V2.
Current result
The docker/setup.sh presents a successful message but nothing is done by the script due to a docker-compose command not being found.
Possible Fix
A simple fix for the setup to work is to update the
setup.sh
replacing the hyphen for a space on the docker compose command. But all documentation should be checked afterwards.For a permanent fix: