bibendi / dip

The dip is a CLI dev–tool that provides native-like interaction with a Dockerized application.
MIT License
1.26k stars 44 forks source link

`docker-compose` is always used instead of `docker compose` #149

Closed entr closed 2 years ago

entr commented 2 years ago

I have both docker-compose and docker compose commands available in Terminal (idk if this is normal). I'm running docker on Apple M1. Docker is installed using brew as a cask. During my debugging efforts on different issues, I noticed that docker-compose is always used instead of docker compose.

$ DIP_ENV=debug dip up -d

[{ __REDACTED__ }, "docker inspect --format '{{ .NetworkSettings.Networks.frontend.IPAddress }}' dnsdock"]
[{ __REDACTED__ }, "docker compose version"]
[{ __REDACTED__ }, "docker-compose --file path-to-my-project/docker/compose.yml --project-name my-project-name up -d

If I run docker compose version manually in the Terminal:

$ docker compose version
Docker Compose version v2.4.1

Context:

Let me know if you need anything else from me and thanks for the great tool!

bibendi commented 2 years ago

Hi! Wierd! I have no idea why this happens :( I'll try to debug this next week.

bibendi commented 2 years ago

It turned out the fix was pretty simple. I've released the 7.3.1 version.