nimmis / docker-spigot

A docker container with spigot, builds spigot.jar on first start
175 stars 82 forks source link

[FEATURE] Stop container, if Spigot crashes #6

Closed Nikdro closed 8 years ago

Nikdro commented 8 years ago

Isn't it better to stop the container, when the JAR-File crashes? Otherwise we are running a useless container with a bash.

By using "docker run --restart always [...]" in combination with this commit it will restart automatically

You can get a bash inside the Container by using docker exec -it bash CONTAINERNAME

Nikdro commented 8 years ago

What's about this Commit ?

nimmis commented 8 years ago

As you can see I have removed the start script so it runs as a daemon instead. Supervisord will take care of the automatic restart and also the world data is now flushed to disk when you issues a docker stop command.