When attempting to stop or restart the server, container exits
To Reproduce
Steps to reproduce the behavior:
launch the server with recommended docker run command
wait until server finishes starting up
enter a stop or even better, a restart command
See error:
restart
[12:49:07 INFO]: Startup script './start.sh' does not exist! Stopping server.
[12:49:07 INFO]: Stopping server
[12:49:07 INFO]: Saving players
[12:49:07 INFO]: Saving worlds
[12:49:07 INFO]: Saving chunks for level 'world'/minecraft:overworld
[12:49:08 INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[12:49:08 INFO]: Saving chunks for level 'world_nether'/minecraft:the_nether
[12:49:08 INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[12:49:08 INFO]: Saving chunks for level 'world_the_end'/minecraft:the_end
[12:49:08 INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[12:49:08 INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[12:49:08 INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[12:49:09 INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
./docker-entrypoint.sh: line 16: exec: serve: not found
Expected behavior
Expected behaviour is for server to restart
Additional context
FWIW, this is happening on Debian 10 but I don't think it's relevant. I can see two parts here. About start.sh I'm not sure where that is coming from. But about serve not found I'm pretty sure that's because you use CMD+ENTRYPOINT format and thus $@ doesn't contain the name of the script itself, only the serve parameter.
Can we fix this, because otherwise a simple thing such as a server restart becomes quite involved?
Describe the bug
When attempting to stop or restart the server, container exits
To Reproduce Steps to reproduce the behavior:
docker run
commandstop
or even better, arestart
commandExpected behavior Expected behaviour is for server to restart
Additional context FWIW, this is happening on Debian 10 but I don't think it's relevant. I can see two parts here. About
start.sh
I'm not sure where that is coming from. But aboutserve not found
I'm pretty sure that's because you use CMD+ENTRYPOINT format and thus$@
doesn't contain the name of the script itself, only theserve
parameter.Can we fix this, because otherwise a simple thing such as a server restart becomes quite involved?