docker_images icon indicating copy to clipboard operation
docker_images copied to clipboard

docker-compose version hiccup

Open depate opened this issue 3 years ago • 3 comments

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?

depate avatar Aug 08 '22 14:08 depate

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

catthehacker avatar Aug 08 '22 15:08 catthehacker

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.

depate avatar Aug 09 '22 09:08 depate

docker compose?

catthehacker avatar Aug 28 '22 09:08 catthehacker