catthehacker / docker_images

Docker images
MIT License
222 stars 78 forks source link

docker-compose version hiccup #67

Closed depate closed 1 year ago

depate commented 2 years ago

I am currently using your ubuntu-full-latest image for local testing a GitHub workflow, act is great and your images are immensely useful, thanks for that, foremost!

I've been running in an issue with a version mismatch from docker-compose in your image, and probably will also affect the upstream. Regarding https://github.com/actions/virtual-environments/pull/4203 and changed files, there should be “both” version available.

If I understand it correctly, docker-compose v1 should be in /usr/local/bin, which I could confirm. docker compose however, is not a command in docker if I try to call it, but moby-compose is a package found in apt show moby-compose on the container, which would be expected looking at the source files.

Can you please point me to my error, how to use docker-compose v2 in your, respectively, the upstream image?

catthehacker commented 2 years ago

ubuntu-full-latest is outdated by like 8 months now probably as it's hard to rebase stuff to keep it updated

depate commented 2 years ago

The problem is not an update, according to commit log v1 and v2 should be in the image in parallel already, due to apt install -y moby-compose. But the question is how to call v2 of docker-compose. v1 is always used, confirmed by which docker-compose, which is /usr/local/bin.

The 'solution' for now is to get the current binary from the release and move it into some /usr/bin/bin preceding path, e.g. /usr/local/sbin.

catthehacker commented 2 years ago

docker compose?