Docker compose uses/shows an old version

Hi, I’ve upgraded docker-compose-plugin but somehow docker compose version shows me an older version

>sudo apt-get install docker-compose-plugin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
docker-compose-plugin is already the newest version (2.28.1-1~ubuntu.22.04~jammy).
docker compose version
Docker Compose version v2.13.0

Restart service / reboot either doesn’t help.
Am I missing something?

Did you update the daemon and cli as well? Could you share their versions as well

Plugins can be in multiple directories.

  • Docker Compose for all users on your system, replace ~/.docker/cli-plugins with /usr/local/lib/docker/cli-plugins.

Docker Desktop comes with Docker Compose so it will probably be in .~/.docker/cli-plugins.
APT will not instal files in your home. docker info can show where the plugins are. If you have multiple compose plugins in different folders one can override the other.

Tiny addition: the command docker info | grep docker-compose should show the path of the docker compose cli plugin that is used.

It was a global installation at /usr/local/lib/docker/cli-plugins. For some reason it was not updated by apt.

Downloading to the local folder fixed the problem.