centos7安装docker-compose

1、下载docker-compose

网盘下载:

链接:https://pan.baidu.com/s/1pltG3aWiN9zMqYt7ZVyLng 
提取码:7awd 
--来自百度网盘超级会员V5的分享

2、上传docker-compose文件到/usr/local/bin目录

[root@192 bin]# ll
总用量 53892
-rwxrwxrwx  1 root root 54453847 1016 17:27 docker-compose
-rwxr-xr-x  1 root root     1758 1010 12:49 jemalloc-config
-rwxr-xr-x  1 root root      145 1010 12:49 jemalloc.sh
-rwxr-xr-x  1 root root   179069 1010 12:49 jeprof
-rwxr-xr-x. 1 root root     1461 614 2017 libmcrypt-config
lrwxrwxrwx  1 root root       12 1010 12:49 luajit -> luajit-2.0.4
-rwxr-xr-x  1 root root   449296 1010 12:49 luajit-2.0.4
-rwxr-xr-x. 1 root root    83224 614 2017 mcrypt
lrwxrwxrwx. 1 root root        6 1010 09:09 mdecrypt -> mcrypt
[root@192 bin]# 

3、添加可执行权限

sudo chmod +x /usr/local/bin/docker-compose

4、测试安装结果

docker-compose --version

你可能感兴趣的:(docker,容器,运维)