I used to update mailcow with docker compose (v1) using the following commands:
./update.sh
sudo docker-compose ps to check if everything is up, if yes, I run:
docker system prune to remove old images.

I upgraded to docker compose (v2) and I no longer can run sudo docker-compose ps to check if everything is up before I remove the images. Whenever I run sudo docker-compose ps I get sudo: docker-compose: command not found. What similar command I should use after upgrading to docker compose (v2)?

  • The syntax for compose (v2) is docker compose (without hyphen) instead of docker-compose.

I check this URL: accesstomemory.org Icon Docker Compose | Documentation (Version 2.6) | AtoM: Open Source Archival Description Software


It mentioned this:
You can run the following command to check the status and other information about the containers:
docker-compose ps
Is this a bug?

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

The syntax for compose (v2) is docker compose (without hyphen) instead of docker-compose.

No one is typing