crscheid / pocketmine-mp

A Docker container for Pocketmine-MP
GNU Lesser General Public License v3.0
25 stars 22 forks source link

Container restart when pocketmine crash #10

Closed kfern closed 5 years ago

kfern commented 5 years ago

Hello!

Can I configure docker container auto-restart when pocketmine server crash? How?

Thanks in advance

crscheid commented 5 years ago

Yes, but outside the scope of this project. When you run the container, either via docker run or docker-compose, you can define a restart policy.

docker run --restart=always

See here for more details: https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart

kfern commented 5 years ago

@crscheid Thanks!