photon
photon copied to clipboard
Proper way to install docker compose (v2) ?
Describe the bug
Running docker compose
yields an error: docker: 'compose' is not a docker command.
There doesn't seem to be a recent guide or "best practice" recommendation for how to install/use docker compose
on Photon. Much of what I find is outdated - for the old docker-compose
(v1) tool. Or involves manually downloading it (without any possibility for auto-update from a repo)
Unless I've done something wrong, the scope of this question is more about "what's the best way to do this?" than "make it work".
Reproduction steps
- Run
tdnf install docker-compose
- presumably installs using the SPEC file here. The setup completed withInstalling/Updating: docker-compose-2.14.0-3.ph5.x86_64
- Run
docker compose
- see errordocker: 'compose' is not a docker command.
- Run
docker plugin list
- see the list is empty
Expected behavior
Running tdnf install docker-compose
should properly configure docker compose
to where I can launch a container from a compose file.
Additional context
I just updated this Photon instance to v5 (was previously v3). Previously I was using the docker-compose
(v1) tool. This is my first time trying to use the newer docker compose
cli on this Photon. It's possible I did something wrong - though I always remember it being very manual to install docker compose.
Hoping this GH "Issue" can serve as learning for others who may be in the same situation.