donknap / dpanel

docker可视化管理面板
https://dpanel.cc
1.25k stars 87 forks source link

1.3.2远程管理无法部署compose #64

Closed Silentely closed 1 day ago

Silentely commented 2 days ago

当前使用的dpanel版本? DPanel - 1.3.2 - lite

错误日志 前几个版本没问题,1.3.0能正常用着,配置和远程管理都没变过,升级到1.3.2后就不行了 e81acc7a4b17941481ed150c0c788eb0.jpeg

error during connect: Get "https://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Ddpanel-c-reader%22%3Atrue%7D%7D": http: server gave HTTP response to HTTPS client
2024-12-01T09:52:56.574379113Z [2024-12-01 17:52:56.573]    [DEBUG] default run command {"docker-compose": ["-f", "/dpanel/compose/reader/docker-compose.yml", "-p", "dpanel-c-reader", "up", "-d", "reader"]}
2024-12-01T09:52:56.633309699Z [2024-12-01 17:52:56.633]    [ERROR] default compose {"deploy copy error": "read /dev/ptmx: input/output error"}
2024-12-01T09:52:56.633360413Z [2024-12-01 17:52:56.633]    [DEBUG] default run command {"docker-compose": ["ls", "--format", "json", "--all"]}
2024-12-01T09:52:56.675136473Z [2024-12-01 17:52:56.674]    [DEBUG] default docker-compose  {"!BADKEY": ["ls", "--format", "json", "--all"], "!BADKEY": "exit status 1"}
2024-12-01T09:52:56.691067288Z 协程数,17 
2024-12-01T09:52:56.741302182Z [2024-12-01 17:52:56.740]    [INFO]  default runtime info    {"goroutine": 16, "client total": 1, "progress total": 0}
2024-12-01T09:52:56.830360545Z [2024-12-01 17:52:56.829]    [INFO]  default runtime info    {"goroutine": 16, "client total": 1, "progress total": 0}

复现方式 切换环境后使用compose部署

donknap commented 1 day ago

新版兼容了旧的 docker-compose 命令导致的。你可以可以先把这个旧命令删除掉,我后续修复一下