itzg / docker-minecraft-server

Docker image that provides a Minecraft Server that will automatically download selected version at startup
https://docker-minecraft-server.readthedocs.io/
Apache License 2.0
9.31k stars 1.53k forks source link

Support for old Raspberry pi 1 (armv6) #2055

Open Jobba7 opened 1 year ago

Jobba7 commented 1 year ago

Enhancement Type

Not sure

Describe the enhancement

I want to run a minecraft vanilla server on an old Raspberry pi 1 (armv6) (Raspberry Pi Model B Rev 2). Is this possible?

itzg commented 1 year ago

This is already possible:

https://github.com/itzg/docker-minecraft-server#running-on-raspberrypi

...however, set your expectations low. It will be incredibly slow and will probably not have enough memory.

Disabling the healthcheck at least on first run will probably be a good idea

https://github.com/itzg/docker-minecraft-server#healthcheck

Jobba7 commented 1 year ago

Yes but, if i run docker run -d -it -p 25565:25565 --name mc -e EULA=TRUE -e MEMORY=400m itzg/minecraft-server:latest then the output is docker: no matching manifest for linux/arm/v6 in the manifest list entries.

And if i run docker run -d -it -p 25565:25565 --name mc -e EULA=TRUE -e MEMORY=400m --platform linux/arm/v7 itzg/minecraft-server:latest then the container stops instantly after starting without any output.

Is there a build supported for linux/arm/v6?

itzg commented 1 year ago

I'm sorry, I didn't notice the exact model you described. I could probably add that to the build since required binaries include armv6. Honestly, it's not really worth the effort. If you're wanting to run anything newer than 1.12.x then it will be incredibly slow, as in 60 minutes for just startup.

Jobba7 commented 1 year ago

I want to give it a try, just for answering the question: can it run minecraft? If it's not too much effort I would be happy :)

itzg commented 1 year ago

I'll queue this up to take a quick stab at it.

camalot commented 1 year ago

everything I see says that Java 11 and later isn't supported on ARMv6? so it would be just java8 that would have support for ARMv6, correct?

itzg commented 1 year ago

Good point @camalot , I didn't think about that aspect.