Docker is installed but Docker Compose is not ? why?

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

提交回复
热议问题