-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper way to install docker compose (v2) ? #1487
Comments
Hi, The docker-compose package in Ph5 installs This isn't the same command as Please consider that there were Photon OS team voices, for example see #647, which weren't enthusiasts about docker compose at that time. In addition, the docs in mind, an upgrade from Photon OS 3.0 to 5.0 is not officially supported (yet?). For Photon OS 4.0, the upgrade workflow is described in https://vmware.github.io/photon/docs-v5/installation-guide/upgrading-to-photon-os-4/. Step 2 says, Stop any services (for example, docker) that are currently running in the VM. and After the upgrade, before you deploy into production, test all previous functionality to ensure that everything works as expected.. Hence, with respect to "what's the best way to do this?", I would consider to assess your containers that are affected by the upgrade, customize a solution and verify that the controls function properly. Hope this helps. |
Thanks Daniel! Very helpful indeed. Realizing "best" is highly subjective, to me it means: well-supported by the software vendor, such that I can automatically receive upstream updates as they release, and those updates have already been tested by the vendor/community to be compatible. Example: Ubuntu (and other distros) maintain their own repos of common packages, albeit with some lag-behind on releases to ensure compatibility. If the Photon team is against doing something like that with In light of this, and given that I'm just a homelabber/VMWare enthusiast in a pseudo-production environment, it sounds like my best option is to install |
Any news? |
Sure. Simply install docker. For
Version from docker-compose package is 2.20.2 on x86_64. |
@dcasota I think that "proper way" means "use tdnf (because its rpm-based os), not hands" |
Yes, it‘s really nice that tdnf is built-in in the internet versions of Photon OS. Same security awareness topics, robust, dependencies check for updates/upgrades, etc. |
Why not: sudo tdnf install -y docker-compose
mkdir -p ~/.docker/cli-plugins
ln -s /usr/bin/docker-compose ~/.docker/cli-plugins/docker-compose
docker compose version |
Hi, actually there seems a package gap to docker compose latest but as soon as it is a pretested automatic version bump for the open-source PhotonOS, yes, ‚why not’ is better. |
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 olddocker-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
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
docker compose
- see errordocker: 'compose' is not a docker command.
docker plugin list
- see the list is emptyExpected behavior
Running
tdnf install docker-compose
should properly configuredocker 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 newerdocker 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.
The text was updated successfully, but these errors were encountered: