码迷,mamicode.com
首页 > 其他好文 > 详细

Docker-compose安装

时间:2021-03-29 11:40:39      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:target   软链接   com   har   http   --   down   参考   hub   

1、下载docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.28.6/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

2、增加可执行权限

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

3、添加软链接

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

4、确认版本

$ docker-compose --version
docker-compose version 1.28.6, build 1110ad01

5、增加docker-compose命令补全

sudo yum install bash-completion -y
sudo curl     -L https://raw.githubusercontent.com/docker/compose/1.28.6/contrib/completion/bash/docker-compose     -o /etc/bash_completion.d/docker-compose

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

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

Docker-compose安装

标签:target   软链接   com   har   http   --   down   参考   hub   

原文地址:https://www.cnblogs.com/a120608yby/p/14582853.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!