centos安装docker-compose命令

1,下载文件
https://github.com/docker/compose/releases/download/1.24.1/docker-compose- ( u n a m e − s ) − (uname -s)- (unames)(uname -m)
浏览器直接下载:
https://github.com/docker/compose/releases/download/2.21.0/docker-compose-Linux-x86_64
2,文件重命名为docker-compose
3,拷贝
scp docker-compose [email protected]:/usr/local/bin
4, 修改权限
sudo chmod +x /usr/local/bin/docker-compose
5,创建软链接
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
6,docker-compose --version

你可能感兴趣的:(centos,docker,linux)