How to upgrade docker-compose to latest version

后端 未结 12 2213
遇见更好的自我
遇见更好的自我 2020-12-23 09:05

I have installed docker-compose using the command

sudo apt install docker-compose

It installed docker-compose version 1.8.0 and build unknown

12条回答
  •  温柔的废话
    2020-12-23 09:24

    If the above methods aren't working for you, then refer to this answer: https://stackoverflow.com/a/40554985

    curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" > ./docker-compose
    sudo mv ./docker-compose /usr/bin/docker-compose
    sudo chmod +x /usr/bin/docker-compose
    

提交回复
热议问题