执行docker compose的时候,发现没有这个命令
docker compose version
docker: 'compose' is not a docker command.
See 'docker --help'
可以通过cli-plugins目录添加
当然用户目录:
全启用户扩展目录
-
/usr/local/lib/docker/cli-plugins
下载docker-compose到指定目录
-
curl -SL htt ps://gith ub.com/docker/compose/releases/download/v2.2.2/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose #先去掉空格
-
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
docker compose version
Docker Compose version v2.2.2
~/.docker/cli-plugins/
~/.docker/cli-plugins/
阅读(741) | 评论(0) | 转发(0) |