Skip to content

dashd not gracefully shutdown when used with docker-compose #36

@c0deright

Description

@c0deright

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

Shutdown: done

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions