I have installed docker-ce
, docker-compose
and the docker-compose-plugin
package on Ubuntu 22.04 from the Docker apt repository, following the official instructions, but when I type docker compose
on the command line all I get is this:
docker: 'compose' is not a docker command.
See 'docker --help'
According to docker plugin ls
, no plugin has been installed. Any clues?
Some additional information:
- bash-completion does suggests
compose
as a possible subcommand - There is a working
docker-compose
executable in/usr/libexec/docker/cli-plugins/
- The output of
dpkg -l | grep docker
is as follows:
ii docker-buildx-plugin 0.10.2-1~ubuntu.22.04~jammy amd64 Docker Buildx cli plugin.
ii docker-ce 5:23.0.1-1~ubuntu.22.04~jammy amd64 Docker: the open-source application container engine
ii docker-ce-cli 5:23.0.1-1~ubuntu.22.04~jammy amd64 Docker CLI: the open-source application container engine
ii docker-ce-rootless-extras 5:23.0.1-1~ubuntu.22.04~jammy amd64 Rootless support for Docker.
ii docker-compose-plugin 2.16.0-1~ubuntu.22.04~jammy amd64 Docker Compose (V2) plugin for the Docker CLI.
ii docker-scan-plugin 0.23.0~ubuntu-jammy amd64 Docker scan cli plugin.
dpkg -l | grep docker
2) how did you install docker itself ? – dummyuser Feb 13 '23 at 15:45docker info
,docker version
andsnap list
.. – Artur Meinild Feb 14 '23 at 11:58docker info
there was the lineFor some reason that file was a text file with only "Not Found" in it. After I got rid of it
– Aldo Feb 14 '23 at 16:15docker compose
started working, and the output ofdocker info
now points to the plugins in/usr/libexec/docker/cli-plugins/