找文件 docker-compost官方github地址 https://github.com/docker/compose 切换master分支 点击复制 在**/etc/bash_completion.d/下新建docker-compose**文件,保存退出后,退出终端,重新进入就可以了 vim
第一步、确保已经安装 Bash Completion 功能; 第二步、安装自动补全: mkdir -pv ~/.local/share/bash-completion/completions/ curl -L https://raw.githubusercontent.com/docker/compose/1.27.4/contrib/completion/bash/docker-compose \ -o ~/.local/share/bash-completion/completions/ 1. 2. 3. 参考文献...
地址:https://github.com/docker/compose/blob/master/contrib/completion/bash/docker-compose 具体步骤: 地址:https://github.com/docker/compose 看文件内容开头,有两种添加方法,这里采用第一种方法: vim /etc/bash_completion.d/docker-compose 把下面的内容给添加进去,然后关闭终端,重新打开一个终端,就生效可以...
sudo curl -L version --short)/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose 1. 这条命令会从Docker Compose的GitHub仓库下载代码自动补全的脚本,并将其保存到/etc/bash_completion.d/docker-compose路径下。 最后,重新启动终端,即可开始使用Docker Compose的代码自动补全功能。
curl-Lhttps://raw.githubusercontent.com/docker/compose/$(docker-compose version--short)/contrib/completion/bash/docker-compose>/etc/bash_completion.d/docker-compose 3、Docker-Compose卸载 如果是二进制包方式安装的,删除二进制文件即可:sudo rm /usr/local/bin/docker-compose如果通过Python pip工具安装的...
curl -L https://raw.githubusercontent.com/docker/compose/1.29.1/contrib/completion/bash/docker-compose> /etc/bash_completion.d/docker-compose 如果这里出现错误,需要修改自己的hosts文件: echo "199.232.68.133 raw.githubusercontent.com" >> /etc/hosts ...
compose 是用来配置,启动,管理容器的工具。 配置项参考链接 https://docs.docker.com/compose/compose-file/ 安装 可执行文件安装:https://docs.docker.com/compose/install/ 自动补全安装:https://docs.docker.com/compose/completion/ 相关命令(命令格式几乎和docker差不多) ...
root@docker01:~# source /etc/bash_completion.d/docker-compose root@docker01:~# docker-compose build config down exec images logs port pull restart run start top up bundle create events help kill pause ps push rm scale stop unpause version ...
curl -L https://raw.githubusercontent.com/docker/compose/1.19.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose 可以参考:https://docs.docker.com/compose/completion/ 4、测试安装是否成功 docker-compose version ...
[root@localhost ~]# chmod +x docker-compose [root@localhost ~]# mv docker-compose /usr/local/bin/ # docker-compose命令补全 [root@localhost ~]# curl -L https://raw.githubusercontent.com/docker/compose/1.29.2/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-...