Docker is installed but Docker Compose is not ? why?

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

提交回复
热议问题