mtoensing / Docker-Minecraft-PaperMC-Server

Starts a Minecraft PaperMC server
https://hub.docker.com/r/marctv/minecraft-papermc-server
MIT License
246 stars 92 forks source link

Raspberry pi problems #4

Closed dko1905 closed 4 years ago

dko1905 commented 4 years ago

When running it on a raspberry pi, I get the following error

standard_init_linux.go:207: exec user process caused "exec format error"

This is how I run it

sudo docker run --rm --name papermc -e MEMORYSIZE='500M' -p 25565:25565 -p 25575:25575 -i marctv/minecraft-papermc-server:latest

By the error description it sounds like an x86 program is trying to run on arm, which shouldn't be the case since it's Java. If that's the case, can you add arm support?

dko1905 commented 4 years ago

I'm pretty sure that this causes the error:

# Install and run rcon
ARG RCON_CLI_VER=1.4.6
ADD https://github.com/itzg/rcon-cli/releases/download/${RCON_CLI_VER}/rcon-cli_${RCON_CLI_VER}_linux_amd64.tar.gz /tmp/rcon-cli.tgz
RUN tar -x -C /usr/local/bin -f /tmp/rcon-cli.tgz rcon-cli && \
  rm /tmp/rcon-cli.tgz
mtoensing commented 4 years ago

Please use this for the Raspberry Pi. Docker won't work in the long run https://github.com/mtoensing/RaspberryPiMinecraft

jhbruhn commented 3 years ago

Why wouldn't work Docker in the long run? I want to try to run a Server on an RPi4 via Docker, why shouldn't it work, using a prober arm32v7 image of course?

mtoensing commented 3 years ago

Because Minecraft needs every bit of memory and performance. I am a huge fan of minecraft. I provide two successful docker images for Java https://github.com/mtoensing/Docker-Minecraft-PaperMC-Server and Bedrock https://github.com/mtoensing/Docker-Minecraft-Bedrock-Server You can try and provide a link to a repository. But I think the overhead is not worth it. And I mean the overhead in maintenance and performance.