Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation does not point to the correct volume path #74

Open
KarstenWintermann opened this issue Feb 5, 2021 · 2 comments
Open

Comments

@KarstenWintermann
Copy link
Contributor

The path for the data volume has changed from "/bitcoin" to "/bitcoin/.bitcoin" in the ":latest" image. If you specify a volume for "/bitcoin" and not for "/bitcoin/.bitcoin", then docker mounts the subfolder to a default docker volume, and not the volume which is specified. This caused some issues on my machine, since the drive holding the docker volumes is only a small SSD, and not my big NAS drive. The docker commands in the documentation should be adjusted accordingly.

@mjonesjr90
Copy link

I ran into this as well. Is there a safe way to move that volume or is it better to start over?

@KarstenWintermann
Copy link
Contributor Author

KarstenWintermann commented Feb 22, 2021

If you want to preserve the contents of the volume, the easiest way would be to log into the container with sudo docker exec -it <container> bash, stop the running bitcoind process, copy everything from "/bitcoin/.bitcoin" to "/bitcoin".
Then, stop the container, do a sudo docker volume prune, change the volume declaration from "/bitcoin" to "/bitcoin/.bitcoin", then restart the container.

I'm not sure if this is safe though, I started over.

This was referenced Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants