From 9fe8d6cca6e622cb46a590a687952b5f2826048f Mon Sep 17 00:00:00 2001 From: Mike Ryan Date: Sat, 1 Nov 2014 18:17:15 -0500 Subject: [PATCH] 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. --- minecraft-server/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft-server/Dockerfile b/minecraft-server/Dockerfile index 520227e0..67afc19d 100644 --- a/minecraft-server/Dockerfile +++ b/minecraft-server/Dockerfile @@ -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