Docker is installed but Docker Compose is not ? why?

后端 未结 13 2067
再見小時候
再見小時候 2021-01-29 20:04

I have installed docker on centos 7. by running following commands,

curl -sSL https://get.docker.com/ | sh
systemctl enable docker && systemctl start do         


        
相关标签:
13条回答
  • 2021-01-29 20:49

    I suggest using the official pkg on Mac. I guess docker-compose is no longer included with docker by default: https://docs.docker.com/toolbox/toolbox_install_mac/

    0 讨论(0)
  • 2021-01-29 20:51

    I'm installing on a Raspberry Pi 3, with Raspbian 8. The curl method failed for me (got a line 1: Not: command not found error upon asking for docker-compose --version) and the solution of @sunapi386 seemed a little out-dated, so I tried this which worked:

    First clean things up from previous efforts:

    sudo rm /usr/local/bin/docker-compose
    sudo pip uninstall docker-compose
    

    Then follow this guidance re docker-compose on Rpi:

    sudo apt-get -y install python-pip
    sudo pip install docker-compose
    

    For me (on 1 Nov 2017) this results in the following response to docker-compose --version:

    docker-compose version 1.16.1, build 6d1ac219
    
    0 讨论(0)
  • 2021-01-29 20:55

    The above solutions didn't work for me. But I found this that worked:

    sudo apt-get update -y && sudo apt-get install -y python3-pip python3-dev
    sudo apt-get remove docker docker-engine docker.io
    curl -fsSL get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
    sudo pip3 install docker-compose
    #sudo docker-compose -f docker-compose-profess.yml pull ofw
    sudo usermod -a -G docker $USER
    sudo reboot
    
    0 讨论(0)
  • 2021-01-29 20:56

    docker-compose is currently a tool that utilizes docker(-engine) but is not included in the distribution of docker.

    Here is the link to the installation manual: https://docs.docker.com/compose/install/

    TL;DR:

    curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
    chmod +x /usr/bin/docker-compose
    

    (1.8.0 will change in the future)

    0 讨论(0)
  • 2021-01-29 20:57

    I'm installing on a Raspberry Pi 3, on Raspbian OS. The curl method didn't resolve to a valid response. It also said {error: Not Found}, I took a look at the URL https://github.com/docker/compose/releases/download/1.11.2/docker-compose-Linux-armv7l and it was not valid. I guess there was no build there.

    This guide https://github.com/hypriot/arm-compose worked for me.

    sudo apt-get update
    sudo apt-get install -y apt-transport-https
    echo "deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ jessie main" | sudo tee /etc/apt/sources.list.d/hypriot.list
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 37BBEE3F7AD95B3F
    sudo apt-get update
    sudo apt-get install docker-compose
    
    0 讨论(0)
  • 2021-01-29 20:57

    On Linux, you can download the Docker Compose binary from the Compose repository release page on GitHub. Follow the instructions from the link, which involve running the curl command in your terminal to download the binaries. These step-by-step instructions are also included below.

    1:Run this command to download the current stable release of Docker Compose:

    sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    

    To install a different version of Compose, substitute 1.26.2 with the version of Compose you want to use.

    2:Apply executable permissions to the binary:

    sudo chmod +x /usr/local/bin/docker-compose
    

    Note: If the command docker-compose fails after installation, check your path. You can also create a symbolic link to /usr/bin or any other directory in your path.

    0 讨论(0)
提交回复
热议问题