mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-12 16:48:50 +00:00
Use 'exec' syntax, fix signal handling
- Fix to allow signals to pass into the container, properly. 'docker stop ...' was resorting to SIGKILL to stop the container, which results in data loss. This change switches CMD to 'exec' mode, ensuring signals make their way to the java process so that things shut down properly.
This commit is contained in:
@@ -18,7 +18,7 @@ VOLUME ['/data']
|
||||
ADD server.properties /tmp/server.properties
|
||||
WORKDIR /data
|
||||
|
||||
CMD /start
|
||||
CMD [ "/start" ]
|
||||
|
||||
ENV MOTD A Minecraft Server Powered by Docker
|
||||
ENV LEVEL world
|
||||
|
||||
Reference in New Issue
Block a user