I've built a docker image consisting of dashcore-node that spawns the dashd process.
When started via docker run -it image-name the current shell keeps being attached to the docker process so that later pressing key combo CTRL+C results in dashd gracefully shutting down. This can be confirmed by looking at dashd's debug.log which contains
as the last entry.
When using docker-compose however upon stopping the container dashd is SIGKILLED, debug.log has no entry about shutting down and the berkeleydb directory "database" is still present in dashd's datadir which is a clear indication that no graceful shutdown happened.
I can only guess that dashcore-node has to handle SIGNALs here for a graceful shutdown of the spawned dashd.
I've built a docker image consisting of dashcore-node that spawns the
dashdprocess.When started via
docker run -it image-namethe current shell keeps being attached to the docker process so that later pressing key combo CTRL+C results in dashd gracefully shutting down. This can be confirmed by looking at dashd's debug.log which containsas the last entry.
When using docker-compose however upon stopping the container dashd is SIGKILLED, debug.log has no entry about shutting down and the berkeleydb directory "database" is still present in dashd's datadir which is a clear indication that no graceful shutdown happened.
I can only guess that dashcore-node has to handle SIGNALs here for a graceful shutdown of the spawned
dashd.