Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Flex's avatar
Level 4

docker installation did not work on Laravel 9 project

going to installation docker in laravel 9 project. as I am using windoes 7 I have installed Docker Toolbox and run the following command on laravel project docker compose up but following error message on the cmd

docker: 'compose' is not a docker command.

what is the problem? how could I fix this problem

0 likes
1 reply
LaryAI's avatar
LaryAI
AI
Best Answer
Level 58

The issue is that the command should be docker-compose up instead of docker compose up. docker-compose is a separate command from docker.

To fix the problem, run the following command in the terminal:

docker-compose up

This should start the Docker containers for the Laravel project.

Please or to participate in this conversation.