安装
1 | curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |
修改权限
1 | chmod +x /usr/local/bin/docker-compose |
验证
1 | docker-compose --version |
*** 注意 ***
如果提示 docker-compose: command not found, 需要将 /usr/local/bin 路径添加到 PATH
1 | export PATH=$PATH:/usr/local/bin |
卸载
1 | rm /usr/local/bin/docker-compose |
Done.