Clone this repo:
git clone https://gist.github.com/c154596915071960ce3a09d8d8513b26.git
cd c154596915071960ce3a09d8d8513b26
Pull DashCore reference image:
docker-compose pull
Start the dashd process in the background:
docker-compose up -d
Now stop the dashd process whenever:
docker-compose down
You can inspect the volume in another container to see the DashCore is shutting down gracefully. Let's use Ubuntu for that (note: you may have to search for the right volume name):
docker pull ubuntu:latest
docker run -it --rm --name tester -v c154596915071960ce3a09d8d8513b26_dashd-data:/data ubuntu:latest tail -n3 /data/.dashcore/debug.log