You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. # Persistence
  2. It's good practice to use a data-only container, alongside the main application.
  3. The `docker.sh` script sets it all up for you, and provides the
  4. same functionality as `-v host_dir:image_dir` but by copying the data rather than
  5. mounting it.
  6. # To Play
  7. The commands should work from tendermint/tendermint or tendermint/tendermint/DOCKER,
  8. save the removal of DOCKER from the path.
  9. Get quickly caught up with the testnet: `FAST_SYNC=true ./DOCKER/docker.sh`
  10. Use a pre-existing `~/.tendermint`: `VC=~/.tendermint NO_BUILD=true ./DOCKER/docker.sh`
  11. This is like doing `-v ~/.tendermint:/data/tendermint`, but better.
  12. Use `NO_BUILD` to avoid waiting if the image is already built.
  13. Rerunning `docker.sh` will require you to delete the old containers:
  14. `docker rm mint mintdata`
  15. However, if you remove the `mintdata` container, you delete the data (the blockchain).
  16. If you don't use the `VC` option, your key will be deleted too
  17. To avoid deleting and recreating the data container, use
  18. `VD=true NO_BUILD=true ./DOCKER/docker.sh`
  19. Of course, once running, you can just control the main container with `docker stop mint` and `docker start mint`