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:
Mike Ryan 2014-11-01 18:17:15 -05:00
parent 55cffbb598
commit 9fe8d6cca6

View file

@ -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