How to Fix Docker Error: docker: ‘compose’ is not a docker command

If you need to test drive WordPress, Try it now!

Sharing is caring!

You’re an awesome WordPress developer and wanted to use docker with WordPress and run into an error.

docker: 'compose' is not a docker command

in docker v1 to use docker compose you had to use docker-compose … but in v2 docker compose is added a docker subcommand i.e. docker compose

To install Docker Compose v2 run this command as root.

sudo apt install -y docker-compose-v2

Sharing is caring!

If you need to test drive WordPress, Try it now!

Leave a Comment

Your email address will not be published. Required fields are marked *