mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 06:14:14 +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:
parent
55cffbb598
commit
9fe8d6cca6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue