Docker報錯Version docker-compose.yml is unsupported

運行docker命令:docker-compose up -d
提示:ERROR: Version in "./docker-compose.yml" is unsupportedgit

查詢後用以下方法解決:
查詢版本:docker-compose -vgithub

$ sudo apt-get remove docker-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-composedocker

相關文章
相關標籤/搜索