赞
踩
- 1Panel在应用商店安装软件失败,重建或者重启报错"服务内部错误: stderr: bash: docker-compose: 未找到命令"
- 执行命令"docker-compose --version"结果为"Docker Compose version v2.17.2",说明docker-compose已经安装
- 执行命令"docker-compose --version"结果为"-bash: docker-compose: 未找到命令",说明docker-compose未安装
- curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" \
- -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && docker-compose --version
- 1.执行"whereis docker-compose"找到docker-compose路径,结果为"/opt/portainer/docker-compose"
-
- 2.执行"cp /opt/portainer/docker-compose /usr/local/bin"将docker-compose复制到/usr/local/bin
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。