-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
latest release not available in the official repo #9657
Comments
I raised this issue in: Not sure why, but not every Compose release is published to the Linux repositories. It would be very helpful if they were. |
Agreed. Shouldn't be hard to automate in a CD process. |
Docker Compose v2.7.0 is out now, and again not in the Apt repository. I would be more than happy to try and help get these builds automated if I could be pointed in the right direction. |
I think this is the repository: |
Though, perhaps this isn't 1 to 1 with the repos as this PR implies 2.7.0 was merged: |
Same with 2.8.0. I'm not trying to add pressure on anyone to do anything about this. I'm just trying to figure out what I should do as I build my own systems, so it would be nice to have some idea of a timeline for when this is likely to be fixed? I used to download compose from the releases page but back in June I noticed that the "convenience script" had started including I'm also cross-linking to #9195 which mentions this same issue. |
Thanks @Paraphraser for linking #9195. Reading through that issue, I think I might understand now what's going on. Getting new releases of Docker Compose into the Apt repository doesn't happen in this repo. As @johnthagen mentioned, this happens in the repo https://github.com/docker/docker-ce-packaging. PRs from that repo (link this one docker/docker-ce-packaging#721) assign the latest Docker Compose version, but that doesn't actually get it published. It seems that the So basically, Docker Compose will only be updated in the Apt repo when Docker CLI gets published there. When that does happen, it will be the Docker Compose version listed in https://github.com/docker/docker-ce-packaging/blob/master/common.mk#L43. This is still a problem, and the comment I posted above suggest they know about it and are trying to unlink the two, but I'm not sure what that timeline will be. |
Reverts #178 This was an exciting idea when we found out that Docker started including Docker Compose in the apt repository. Unfortunately, this new install method is not working out for us. Docker doesn't publish new Docker Compose releases to the repo until they do a new Docker release. This is preventing us from releasing new Docker Compose versions within our image itself. I have an [open issue](docker/compose#9657) upstream regarding this. Until that gets resolved at some point, we'll go back to how we use to install Docker Compose. Not as "cool", but it worked.
Is there something "interesting" that's going on with the For example on Ubuntu 22.04 LTS I can't apt pin
No matter what I do it always installs 2.6.0. It's like it ignores the pin. But 2.5.0 is available based on:
I've pinned |
This issue occurs without |
Same here, only $ apt-cache madison docker-compose-plugin
docker-compose-plugin | 2.6.0~ubuntu-jammy | https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
docker-compose-plugin | 2.5.0~ubuntu-jammy | https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
docker-compose-plugin | 2.3.3~ubuntu-jammy | https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy $ cat /etc/apt/sources.list.d/docker.list
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable |
I have the same problem and actually just realized it now.
|
@rusagent as a workaround I installed the plugin manually |
It looks like |
As long as system packages are managed by docker/docker-ce-packaging and we don't get release cycles aligned there's nothing we can do to enforce latest compose release is available by this distribution channel. Maybe in the future things will improve but this isn't under compose team responsibility. In the meantime it's easy to just download the platform binaries from github release page as a workaround, so I'm closing this issue. |
Is the Compose team not part of Docker Inc.? Also, as Docker Compose is an official Docker project, I was under the impression that Docker Inc. would have some level of control over the Docker apt repository (for example, https://download.docker.com/linux/ubuntu). Could you please clarify if my understanding is incorrect? |
In addition to what @jflattery said, it is also the Compose team's responsibility to have appropriate documentation. The official documentation for Docker Compose installation on Linux specifically encourages setting up and using the apt repository as the preferred method. And nowhere is it mentioned that the apt repository version is not updated regularly and can be severely outdated and the version on GitHub releases is the only way to get the newer versions. But the compose features and help documentation always point to the latest few versions by default. If official documentation endorses the apt repo, doesn't mention any caveats right up front right where these instructions are, and then the official help docs refer to the newer versions, one would automatically assume, since this is what usually should and does happen with most other softwares, that doing apt upgrade of docker products will bring them all to current versions. So here are Docker users, everything installed and working just fine, busy in their work day with deadlines and all, apt upgrading docker once every 6 months because that should be enough time to iron out new release issues. And everything is working fine because the compose files aren't using relatively newer features yet; then they try using a newer feature because hey, it's a useful one and can save hours of work in the long run, when bam! The new compose file does not work, no idea why so they spend some time digging into it until they find that the compose version is way behind what the docs are for, apt upgrade be damned. |
I understand the frustration but this is a larger organization-level discussion to have to refactor the package repository distribution pipeline. docker/docker-ce-packaging would be the best place to track required changes for this to take place |
And like @jflattery said, this isn't Oh! Canonical keeps changing their apt thingamajig which keeps breaking our builds and it is not in our control! No, this is Docker Engine team not talking to Docker Compose team. Two foundational This issue is nearing its second anniversary; in all that time, nobody thought to corner Mike at the company retreat and say, Hey! maybe we should keep our versions copacetic, yeah? |
@ndeloof The Compose team is telling us there is nothing they can do? The Compose team cannot update its installation instructions to recommend just installing from the GitHub releases, or at the barest minimum of effort, add the caveat with the repo installation method documentation? |
It has been 2 years! This is a mainstream product from a "large organization" used by million! |
I only can agree this must be fixed, but unfortunately this repo is not the right place to have impact on this as the compose team has no impact on the release pipeline, which was initially designed for docker engine. |
What about changing the documentation for Docker Compose? |
Also, this is messed up, telling me to refer to the issue I created 10 minutes ago, that you acknowledge I created 10 minutes ago. |
my comment was for anyone joining this conversation, not just you (obviously) |
Alright, any answers to this? Will the compose team discuss this?
|
docs already includes instructions for both installation approaches: Please also note, while the latest version may not be immediately available on download.docker.com, the engine release cycle has increased the lack of release sync has a lower impact now. 2.26.1 is for example available just now (https://download.docker.com/linux/ubuntu/dists/noble/pool/stable/amd64/) so this isn't as bad as it used to be one year ago. |
I'd like to offer my very strong support to the people who work on @kchawla-pi if you are two years behind then your installation of It boils down to some history, and the difference between the Many instructions tell you (in part) to install:
That is wrong. It results in an ancient version of Worse, when you use If you install Docker on a brand new Linux system you should use the official "convenience script". Despite it appearing under the Ubuntu heading, the script works properly on Debian and Raspberry Pi OS. The script installs The practical effect of running the convenience script is the plugin form works. For example:
One unfortunate side-effect is that the traditional command form no longer works. For example, this fails:
The easiest way to fix this problem is with a symbolic link, then both the plugin and command forms work. There are some other things the "convenience script" does not do, including adding the user who will be running Although the documentation I am about to point you to is tailored to a specific environment (IOTstack), you will find some information here about repairing an existing system so you have an up-to-date I am reasonably sure that the scripts in the The
Just keep in mind that you are unlikely to be able to run it successfully unless your existing Now, for the record, here's my own system: ![]() That's fully up-to-date and was all done with routine Finally, it is true that what you can get from However, if you really want to use the most-recent release then the I'd really appreciate it if you could add comments to this issue to let me know whether what I've written above has helped you to resolve your problem. |
@Paraphraser none of what you said applies to me or anything I wrote. My installation isn't two years old, this issue was opened 2 years ago. I didn't use YouTube. I used official documentation. We all appreciate the software and the team that builds it and we will also critique it. The two aren't mutually exclusive. In fact if we didn't appreciate it we wouldn't bother filling issues here. |
@Paraphraser all I want at minimum is for the official documentation to mention this caveat and point to GitHub releases page as the workaround. Ideally that should be made the default not apt. This is one of many examples: This is from just a few months ago, when the compose documentation mentioned the new include directive which was supported by Docker Compose installed via Docker Desktop for Mac and Windows immediately but wasn't available with the Docker compose installed via apt following the official installation instructions for many months after. And no, this is not one specific thing I want a solution to, it is just one example that I clearly remember right now. |
I'm not sure if this belongs here or in https://github.com/docker/docker-ce-packaging. The official Debian/Ubuntu apt repository (referenced in docs) doesn't contain the latest release of Docker Compose, v2.6.1, which came out 22 days ago.
The package name,
docker-compose-plugin
, stops at v2.6.0. Any thoughts as to why?The text was updated successfully, but these errors were encountered: