docker和dockers-compose的版本兼容对照
以下是我的服务器的相关信息
linux版本
[root@izbp16fm097gaw3tdaog2wz bin]# cat /proc/version Linux version 3.10.0-862.14.4.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Wed Sep 26 15:12:11 UTC 2018
docck版本
[root@izbp16fm097gaw3tdaog2wz bin]# docker -v Docker version 18.06.1-ce, build e68fc7a [root@izbp16fm097gaw3tdaog2wz bin]# yum list installed | grep docker docker-ce.x86_64 18.06.1.ce-3.el7 @docker-ce-stable
安装docker-compose
$ curl -L https://github.com/docker/compose/releases/download/1.8.0/run.sh > /usr/local/bin/docker-compose $ chmod +x /usr/local/bin/docker-compose
$ docker-compose --version
执行了docker-compose --version后输出如下所示表示安装成功
[root@izbp16fm097gaw3tdaog2wz bin]# docker-compose --version docker-compose version 1.8.1, build 878cff1