Skip to content

Conversation

rootninja1337
Copy link

🔍 Why Not Just command -v "docker compose"?

Because docker compose is not a standalone command, it's a subcommand of the docker binary.
docker compose is part of the Docker CLI.
command -v only works for standalone binaries (like docker, ls, curl).
So to test if the subcommand exists, you try running it and check the return status

Copy link
Contributor

Woohoo @rootninja1337! 🎉 You've just dropped some hot new code! 🔥

Hang tight while we review this! You rock! 🤘

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

Successfully merging this pull request may close these issues.

1 participant