Docker is installed but Docker Compose is not ? why?

后端 未结 13 2309
再見小時候
再見小時候 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: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
    

提交回复
热议问题