如何在Docker中修复“standard_init_linux.go:187:exec用户进程导致" exec格式错误"”?

时间:2018-01-13 01:12:44

标签: docker dockerfile pocketmine

我刚刚制作了我的第一个Docker Image,在Docker中运行pmmp / PocketMine-MP。当我尝试容器时,我收到以下错误:

[root@docker pmmp-docker]# docker run -it -p 19132:19132 -p 19132:19132/udp --name pmmp pmmp
standard_init_linux.go:187: exec user process caused "exec format error"

我也有Dockerfile设置:

FROM debian:latest

RUN apt-get update

RUN apt-get -y install curl git

RUN curl -O https://jenkins.pmmp.io/job/PHP-7.2-Linux-x86_64/lastSuccessfulBuild/artifact/PHP_Linux-x86_64.tar.gz

RUN mkdir -p server

RUN tar xf PHP_Linux-x86_64.tar.gz --directory ./server

RUN curl -O https://jenkins.pmmp.io/job/PocketMine-MP/Development/artifact/PocketMine-MP_1.7dev-615_45b02d92_API-3.0.0-ALPHA10.phar > ./server/PocketMine-MP.phar 

RUN curl -O https://raw.githubusercontent.com/pmmp/PocketMine-MP/master/start.sh > ./server/start.sh

RUN chmod +x ./server/start.sh

CMD ["./server/start.sh", "--no-wizard", "--enable-rcon=on"]

我该如何解决这个问题?我很新,如果我已经陷入了失败的困境,请告诉我。

1 个答案:

答案 0 :(得分:2)

没有进一步的见解,但我通过对Docker进行工厂重置来解决我的问题。

enter image description here