linux 下 docker-compose安裝

 

 

docker和dockers-compose的版本兼容對照java

 如下是個人服務器的相關信息linux

linux版本git

[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版本github

[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-composedocker

$ 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後輸出以下所示表示安裝成功centos

[root@izbp16fm097gaw3tdaog2wz bin]# docker-compose --version
docker-compose version 1.8.1, build 878cff1
相關文章
相關標籤/搜索