服务内部错误: stderr: bash: docker-compose: 未找到命令

  1. 报错描述
    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
  2. 解决方法
    1.执行"whereis docker-compose"找到docker-compose路径,结果为"/opt/portainer/docker-compose"
    
    2.执行"cp /opt/portainer/docker-compose /usr/local/bin"将docker-compose复制到/usr/local/bin

你可能感兴趣的:(1panel,docker,docker-compose,运维,服务器)