Docker-compose: command not found

  • I'm doing clean install of OMV5 on amd64 system. I'm installing Docker by klicking to Install button in OMV-Extras. The last lines of installation dialog are:

    Code
    ...
    Successfully installed docker.
    Installing local docker-compose 1.28.0...
    Done.

    But when I try to run docker-compose command I'm getting this message:

    Code
    sudo docker --version
    Docker version 20.10.3, build 48d30b5
    sudo docker-compose --version
    sudo: docker-compose: command not found

    What's wrong? Why docker-compose is not installed? Any suggestion, please?

  • What's wrong? Why docker-compose is not installed? Any suggestion, please?

    /usr/local/bin/ must not be in your path. echo $PATH

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Add your user to the docker group and then execute docker-compose commands without sudo.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • But without sudo I'm getting the same message:

    Code
    docker-compose: command not found

    It looks like docker-compose isn't installed with docker installation. Where it should be installed? If in /usr/local/bin then this directory is empty in my case.

  • That's where it is on my OMV 5 machine, but it's been upgraded several times from previous versions of OMV.


    fred@omv:~$ locate docker-compose

    /usr/local/bin/docker-compose

    fred@omv:~$

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • Where it should be installed? If in /usr/local/bin then this directory is empty in my case.

    That is where it should be unless you have an i386 system. What is the output of:


    dpkg -l | grep docker

    uname -a

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • That is where it should be unless you have an i386 system. What is the output of:


    dpkg -l | grep docker

    uname -a

    Code
    root@OMV5:~# dpkg -l | grep docker
    ii docker-ce 5:20.10.3~3-0~debian-buster amd64 Docker: the open-source application container engine
    ii docker-ce-cli 5:20.10.3~3-0~debian-buster amd64 Docker CLI: the open-source application container engine
    root@OMV5:~# uname -a
    Linux OMV5.omv5.local 5.10.0-0.bpo.3-amd64 #1 SMP Debian 5.10.13-1~bpo10+1 (2021-02-11) x86_64 GNU/Linux
  • Not sure what happened. Click the install docker button again.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I already did it several times. Even uninstall docker, restart and install again.

    Still no files in /usr/local/bin folder.

  • Run these lines as root (not sudo):


    dockerComposeVersion="1.28.0"

    url="https://github.com/docker/compose/releases/download/${dockerComposeVersion}/docker-compose-Linux-x86_64"

    dockerCompose="/usr/local/bin/docker-compose"

    curl -L "${url}" -o "${dockerCompose}"

    chmod +x "${dockerCompose}"

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I think I found it!

    Code
    root@OMV5:~# curl -L "${url}" -o "${dockerCompose}"
    -bash: curl: command not found

    So I installed curl and then click on the Install button again and docker-compose is now installed :)


    The docker installation relies on curl but curl isn't installed by default?

  • The docker installation relies on curl but curl isn't installed by default?

    I'm not sure how you had a Debian install without curl installed. If you install with the OMV iso, it is definitely installed. How did you install OMV?

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • t. I think that even in the past I had to install curl manually.

    Not sure why just about everyone has it installed then. I changed omv-extras to use wget since wget is a dependency of OMV itself.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!