收起左侧

johngong/baidunetdisk docker 容器运行失败

5
回复
167
查看
[ 复制链接 ]

1

主题

1

回帖

0

牛值

江湖小虾

2025-11-10 14:19:56 显示全部楼层 阅读模式

设备环境:物理机

BUG现象:johngong/baidunetdisk docker 容器运行失败

 docker create \
    --name=baidunetdisk \
    -p 5800:5800 \
    -p 5900:5900 \
    -v /vol1/1000/baidu/config:/config \
    -v /vol1/1000/baidu/config/baidunetdiskdownload:/config/baidunetdiskdownload \
    --restart unless-stopped \
    johngong/baidunetdisk:latest

日志信息:

[init        ] container is starting...
[cont-env    ] loading container environment variables...
[cont-env    ] APP_NAME: executing...
[cont-env    ] APP_NAME: /etc/cont-env.d/APP_NAME: 1: DockerApp: not found
[cont-env    ] APP_NAME: terminated with error 127.

出现频率:必现

收藏
送赞
分享

1

主题

1

回帖

0

牛值

江湖小虾

2025-11-10 15:08:46 楼主 显示全部楼层
升级 0.9.35 前无此问题

1

主题

10

回帖

15

牛值

小有名气

2025-11-20 21:45:56 显示全部楼层
我也一样,找不到方法修复

0

主题

3

回帖

0

牛值

江湖小虾

2025-11-20 23:25:41 显示全部楼层

1.0.0版本问题还在

参考以下帖子可以临时解决问题

https://club.fnnas.com/forum.php?mod=viewthread&tid=41942

需要额外执行的命令如下

echo "echo "$(cat /etc/cont-groups.d/cinit/id)"" > /etc/cont-groups.d/cinit/id
echo "echo "$(cat /etc/cont-groups.d/staff/id)"" > /etc/cont-groups.d/staff/id
echo "echo "$(cat /etc/cont-groups.d/nogroup/id)"" > /etc/cont-groups.d/nogroup/id
echo "echo "$(cat /etc/cont-groups.d/root/id)"" > /etc/cont-groups.d/root/id
echo "echo "$(cat /etc/cont-groups.d/shadow/id)"" > /etc/cont-groups.d/shadow/id
echo "echo "$(cat /etc/cont-users.d/_apt/id)"" > /etc/cont-users.d/_apt/id
echo "echo "$(cat /etc/cont-users.d/_apt/gid)"" > /etc/cont-users.d/_apt/gid
echo "echo "$(cat /etc/cont-users.d/_apt/home)"" > /etc/cont-users.d/_apt/home
echo "echo "$(cat /etc/cont-users.d/root/id)"" > /etc/cont-users.d/root/id
echo "echo "$(cat /etc/cont-users.d/root/gid)"" > /etc/cont-users.d/root/gid
echo "echo "$(cat /etc/cont-users.d/root/home)"" > /etc/cont-users.d/root/home
echo "echo "$(cat /etc/cont-users.d/root/grps)"" > /etc/cont-users.d/root/grps

1

主题

10

回帖

15

牛值

小有名气

2025-11-21 20:25:28 显示全部楼层

感谢牛友的参考,以下是运行步骤:SSH 进去终端,root 先

docker run -it --entrypoint /bin/bash johngong/baidunetdisk

先运行docker镜像先,等输入框出来就输入下面这一堆代码

echo "echo \"$(cat /etc/cont-env.d/APP_NAME)\"" > /etc/cont-env.d/APP_NAME
echo "echo "$(cat /etc/cont-env.d/APP_VERSION)"" > /etc/cont-env.d/APP_VERSION
echo "echo "$(cat /etc/cont-env.d/DOCKER_IMAGE_PLATFORM)"" > /etc/cont-env.d/DOCKER_IMAGE_PLATFORM
echo "echo "$(cat /etc/cont-env.d/TAKE_CONFIG_OWNERSHIP)"" > /etc/cont-env.d/TAKE_CONFIG_OWNERSHIP
echo "echo "$(cat /etc/cont-env.d/XDG_CACHE_HOME)"" > /etc/cont-env.d/XDG_CACHE_HOME
echo "echo "$(cat /etc/cont-env.d/XDG_CONFIG_HOME)"" > /etc/cont-env.d/XDG_CONFIG_HOME
echo "echo "$(cat /etc/cont-env.d/XDG_DATA_HOME)"" > /etc/cont-env.d/XDG_DATA_HOME
echo "echo "$(cat /etc/cont-env.d/XDG_RUNTIME_DIR)"" > /etc/cont-env.d/XDG_RUNTIME_DIR
echo "echo "$(cat /etc/cont-env.d/XDG_STATE_HOME)"" > /etc/cont-env.d/XDG_STATE_HOME
echo "echo "$(cat /etc/cont-groups.d/cinit/id)"" > /etc/cont-groups.d/cinit/id
echo "echo "$(cat /etc/cont-groups.d/staff/id)"" > /etc/cont-groups.d/staff/id
echo "echo "$(cat /etc/cont-groups.d/nogroup/id)"" > /etc/cont-groups.d/nogroup/id
echo "echo "$(cat /etc/cont-groups.d/root/id)"" > /etc/cont-groups.d/root/id
echo "echo "$(cat /etc/cont-groups.d/shadow/id)"" > /etc/cont-groups.d/shadow/id
echo "echo "$(cat /etc/cont-users.d/_apt/id)"" > /etc/cont-users.d/_apt/id
echo "echo "$(cat /etc/cont-users.d/_apt/gid)"" > /etc/cont-users.d/_apt/gid
echo "echo "$(cat /etc/cont-users.d/_apt/home)"" > /etc/cont-users.d/_apt/home
echo "echo "$(cat /etc/cont-users.d/root/id)"" > /etc/cont-users.d/root/id
echo "echo "$(cat /etc/cont-users.d/root/gid)"" > /etc/cont-users.d/root/gid
echo "echo "$(cat /etc/cont-users.d/root/home)"" > /etc/cont-users.d/root/home
echo "echo "$(cat /etc/cont-users.d/root/grps)"" > /etc/cont-users.d/root/grps

等结束后,/init输入看看有没错误,没有错误后然后再新开 ssh 输入 docker ps -a,能看到现有的容器列表,找到 johngong/baidunetdisk,看它最前面的 id
输入 docker commit ID baidunetdisk,就能生成一个名字叫 baidunetdisk 的镜像了,回到飞牛的网页端进入 docker 的本地镜像也能找到它然后部署就可以了,设置里面命令那栏如果空白了就加上/init

0

主题

1

回帖

0

牛值

江湖小虾

程序员能不能帮忙修复一下啊

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则