I’ve been using a docker image from Docker Hub running 0.14.5.2 or 0.14.5.3 with a balance >0.
now that 0.14.6.0 has gone live i wonder what the best approach would be in order to upgrade my docker instance without loosing my balance/addresses/history.
after taking a brief look at the dockerfile it seems like a volume is defined for “/home/firod/.firo” so i could tar-backup its contents through e.g.
$ mkdir ~/mybackups $ docker run --rm --volumes-from firod -v ~/mybackups:/backup debian:stretch $ bash -c "cd /home/firod/ && tar -cvjf /backup/210426_firod.tar.bz2 ./.firo && md5sum /backup/210426_firod.tar.bz2 > /backup/210426_firod.tar.bz2.md5"
plus get the current instances volume path through
$ docker inspect <ContainerID> | jq --raw-output ..Mounts.
After that I assume I should be ok to issue
$ docker rm firod && docker pull firoorg/firod
$ docker run --detach -v /path/to/former-firod-volume:/home/firod/.firo --name firod firoorg/firod
to start my updated firod instance.
Does this workflow seem legit or are any further migration-scripts needed during the upgrade process?
Many thanks in advance for your advice on this! <3