specify udp in Docker run command#389
Conversation
|
When you were testing, did you have any issues with the volume path? I had noticed this comment earlier: https://github.com/orgs/EndstoneMC/discussions/193#discussioncomment-16307822
I tested it on my own server, and that indeed seemed to be the case: $ docker run --rm -it -v ${PWD}:/home/endstone -p 19132:19132/udp endstone/endstone
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "./docker-entrypoint.sh": stat ./docker-entrypoint.sh: no such file or directory
Run 'docker run --help' for more informationAdjusting it to Was that the same for you, using emulation? |
|
I used a different volume path during testing, and only set that one so the volume path so it would align with the other commands. This seems to be the case! This fails, ❯ docker run \
--platform linux/amd64 \
-p 19132:19132/udp \
-it \
-v ${PWD}:/home/endstone/ \
--name endstone-server \
endstone/endstone
What's next:
Debug this container error with Gordon → docker ai "help me fix this container error"
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "./docker-entrypoint.sh": stat ./docker-entrypoint.sh: no such file or directory
Run 'docker run --help' for more informationwhereas ❯ docker run \
--platform linux/amd64 \
-p 19132:19132/udp \
-it \
-v ${PWD}:/home/endstone/bedrock_server \
--name endstone-server \
endstone/endstone
Bedrock Dedicated Server (v26.12) is not found in /home/endstone/bedrock_server. Would you like to download it now? [Y/n]:this works successfully. I will write a commit fixing the command |
|
Do you think it's worth applying this fix to the two other commands? |
|
Since you're there, might as well! The errors are identical, so I believe the correct volume really is Makes me wonder how long people have been working around this 😆 |
Specify port as UDP in the docker run example. Docker defaults to TCP, which causes connection problems for the server.
I did not notice this while testing the command initially. Sorry!