fantasylidong / AnneZonemod

使用了Zonemod改图的Anne插件包,所有对抗插件都已更新到最新版本,Anne核心和原test分支,和电信服保持一致
GNU General Public License v3.0
8 stars 0 forks source link

Docker 镜像无法使用 #13

Closed HoshinoRei closed 2 years ago

HoshinoRei commented 2 years ago

作者你好,小玲使用 morzlee/anne 这个镜像部署,但是却无法正常启动容器。系统是 Debian 11.5,Docker 版本 20.10.18,Docker Compose 版本 2.10.2。

version: "3"
services:
  anne:
    container_name: anne
    image: morzlee/anne
    environment:
      - PORT=27015
      - MAP=c1m1_hotel
      - REGION=4
      - plugin=anne
    network_mode: host
    restart: unless-stopped

日志:

root@debian:~# sudo docker logs anne
/bin/sh: 1: ./entrypoint.sh: Permission denied
/bin/sh: 1: ./entrypoint.sh: Permission denied
/bin/sh: 1: ./entrypoint.sh: Permission denied
/bin/sh: 1: ./entrypoint.sh: Permission denied
/bin/sh: 1: ./entrypoint.sh: Permission denied

另外 morzlee/anneserver:testmorzlee/anneserver:stable 也是一样的情况。

fantasylidong commented 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的镜像吗,应该是直接可以用的

fantasylidong commented 2 years ago

我拉取测试了一下确实有问题,等修复

fantasylidong commented 2 years ago

临时修复方法,去/var/lib/docker/overlay2/ 找到容器的entrypoint.sh脚本位置 我的是/var/lib/docker/overlay2/89dc8136b72a65d9d5e532b6d407e953504e191f371b2ee28a4f5f1dcca85c90/diff/home/louis/

然后更改权限和用户组 chmod +x entrypoint.sh chown -R openwrt:openwrt entrypoint.sh

fantasylidong commented 2 years ago

morzlee/anne容器更新完了,我自己感觉没啥问题了,你看看可以了么

HoshinoRei commented 2 years ago

morzlee/anne容器更新完了,我自己感觉没啥问题了,你看看可以了么

可以启动了,感谢修复。