gpt4 book ai didi

docker - 如何在Docker中修复 “standard_init_linux.go:187: exec user process caused “exec format error”?

转载 作者:行者123 更新时间:2023-12-02 18:30:27 30 4
gpt4 key购买 nike

我刚刚制作了我的第一个Docker镜像,以便在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"]

我怎样才能解决这个问题?我很新,如果我已经陷入失败的困境,请告诉我。

最佳答案

没有更多的见解,但是我通过将Docker恢复出厂设置解决了我的问题。

enter image description here

关于docker - 如何在Docker中修复 “standard_init_linux.go:187: exec user process caused “exec format error”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48236057/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com