HelloZeroNet / HelloZeroNet/ZeroNet

python not found during docker-compose up

未关闭
#2,500 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

I tried to start a zeronode with this docker-compose.yml file, I found [here](https://github.com/HelloZeroNet/ZeroNet/issues/1904#issuecomment-464748094):
```
version: '3'
services:

proxy:
container_name: proxy.zites.cf
image: nofish/zeronet
restart: always
environment:
ENABLE_TOR: "true"
volumes:
- ./data:/root/data
- ./log:/root/log
- ./zeronet.conf:/root/zeronet.conf
ports:
- "26552:26552"
- "127.0.0.1:43110:43110"
command: "sh -c ' ( [ -e /root/plugins/disabled-Multiuser ] && rm -rf /root/plugins/Multiuser && mv /root/plugins/disabled-Multiuser /root/plugins/Multiuser ) && (/usr/bin/tor &) && python zeronet.py --ui_host proxy.zites.cf 127.0.0.1:43110 --ui_ip 0.0.0.0 --fileserver_port 26552'"

```
but when I run

docker-compose up

It exits with an error:

```

Creating network "zeronet_default" with the default driver
Pulling proxy (nofish/zeronet:)...
latest: Pulling from nofish/zeronet
aad63a933944: Pull complete
01a00972849f: Pull complete
9bddbe39f010: Pull complete
ea7ed6b444e6: Pull complete
Digest: sha256:19aac3fbb8dd7eedf05423e7c6f69a2090a5ee85f21ff6cc50d2e425b469a777
Status: Downloaded newer image for nofish/zeronet:latest
Creating proxy.zites.cf ... done
Attaching to proxy.zites.cf
proxy.zites.cf | sh: python: not found
proxy.zites.cf exited with code 1

贡献指南

这个仓库没有索引到贡献指南

调研方向

从所引用的 docker-compose.yml 及其命令开始,然后检查 nofish/zeronet 镜像配置,以确定为什么调用的 python 可执行文件不可用。当 docker-compose up 启动服务时不再出现 "python: not found" 错误后,该 issue 即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, docker-compose, python
领域
devops, infrastructure
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。