-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop the server gracefully with Docker #26
Comments
I think the server is stopped gracefully if the container is stopped or restarted. Never had an issue with that. |
Thanks for the quick response! I just took another look and it seems the server does not stop gracefully. Recently build blocks are lost and the server doesn't stop by unloading plugins and kicking users with the message "server is shutting down". I would appreciate a quick look if my compose file is missing anything important or if you have any idea what's causing the different behavior.
I'll try and dig a bit deeper in the meantime. |
The compose file looks okay. |
I took a closer look and found out the server was not running as pid 1, therefore not honoring SIGKILL. It seems this problem only occurs when pulling Docker Hub: GitHub: Could there be something wrong with the prebuilt images? |
The images are build on Docker Hub with GitHub as the source. Any idea what could cause this? |
done. Thank you |
Hi, thank you for maintaining this project!
I was wondering if there is a way to gracefully stop the server using docker. If I'm not mistaken,
docker stop
sends a SIGTERM to the container, but when inspecting the server output usingdocker attach
it seems there is not the usual output I expect from a stopping Minecraft server (saving world, stopping server).Am I correct in assuming that this does not stop the server gracefully? If so, would this be an issue that could be fixed by this project or should it be directed at PaperMC?
The text was updated successfully, but these errors were encountered: