photon icon indicating copy to clipboard operation
photon copied to clipboard

Proper way to install docker compose (v2) ?

Open EricSeastrand opened this issue 1 year ago • 6 comments

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

  1. Run tdnf install docker-compose - presumably installs using the SPEC file here. The setup completed with Installing/Updating: docker-compose-2.14.0-3.ph5.x86_64
  2. Run docker compose - see error docker: 'compose' is not a docker command.
  3. 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.

EricSeastrand avatar Jun 21 '23 16:06 EricSeastrand