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?

    • Offizieller Beitrag

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

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

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

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

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    then you don't need sudo.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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
    • Offizieller Beitrag

    Not sure what happened. Click the install docker button again.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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.

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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?

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!