docker-ark-server icon indicating copy to clipboard operation
docker-ark-server copied to clipboard

docker restart of container does not gracefully stop the server

Open codegain opened this issue 3 years ago • 4 comments

Hi,

I had the following issue: Some of my friends were playing on the server and after like 10 minutes I tested to restart the server using docker restart ark_server (I installed the server using the docker run command). This somehow doesn't trigger a "graceful stop" of the server, because all items in the inventory of my friends were lost.

ARK-Server-Tools state that stopping/restarting the server gracefully would result in a worldsave. Manually saving the world via docker exec ark_server arkmanager worldsave and restarting via docker restart ark_server did indeed save the world.

Are there any options for docker restart or the docker run command which need to be added in order that docker restart causes a graceful stop? Or can this somehow be added to the docker image to save the world in case the container restarts (server reboot/manual restart)?

codegain avatar Jan 28 '22 22:01 codegain

Yikes.. I'm sorry that you and your friends lost your inventory.

I'll dig into this.

Hermsi1337 avatar Jan 31 '22 15:01 Hermsi1337

Hey @codegain I've released a new version of the image. Could you try with current latest ?

Hermsi1337 avatar Jun 30 '22 14:06 Hermsi1337

I experienced the same today, the docker container got updated by watchtower and my brother lost everything he build.

Mickroz avatar Mar 06 '23 18:03 Mickroz