Closed HoshinoRei closed 2 years ago
看上去好像是entrypoint.sh没有执行权限?
使用
docker exec -ti -u root anne bash
EDIT: 不知道你容器能否启动进入shell,不能的话得去找docker容器对应位置进行修改
进入docker shell
输入
ls -al
看一下entrypoint权限
正确的权限应该是这样的:
-rwxr-xr-x 1 root root 1766 Sep 11 10:46 entrypoint.sh
你是直接拉取DockerHub的镜像吗,应该是直接可以用的
我拉取测试了一下确实有问题,等修复
临时修复方法,去/var/lib/docker/overlay2/ 找到容器的entrypoint.sh脚本位置 我的是/var/lib/docker/overlay2/89dc8136b72a65d9d5e532b6d407e953504e191f371b2ee28a4f5f1dcca85c90/diff/home/louis/
然后更改权限和用户组 chmod +x entrypoint.sh chown -R openwrt:openwrt entrypoint.sh
morzlee/anne容器更新完了,我自己感觉没啥问题了,你看看可以了么
morzlee/anne容器更新完了,我自己感觉没啥问题了,你看看可以了么
可以启动了,感谢修复。
作者你好,小玲使用
morzlee/anne
这个镜像部署,但是却无法正常启动容器。系统是 Debian 11.5,Docker 版本 20.10.18,Docker Compose 版本 2.10.2。日志:
另外
morzlee/anneserver:test
和morzlee/anneserver:stable
也是一样的情况。