欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

linux上安装docker-compose

程序员文章站 2024-03-25 13:43:16
...

简单记录一下:在linux上安装docker-compose
背景
1.centos版本为

[aaa@qq.com ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

2.安装的docker-compose的版本为官网上的最新版

https://docs.docker.com/compose/install/

linux上安装docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
[aaa@qq.com ~]# docker-compose -version
docker-compose version 1.24.1, build 4667896b

相关标签: docker