[root@localhost ~]# curl -SL https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
下载docker-compose
[root@localhost ~]# sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
做个软连接
[root@localhost ~]# chmod +x /usr/local/bin/docker-compose
添加执行权限
[root@localhost ~]# docker-compose --version
Docker Compose version v2.20.2
完成
发表评论