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.
 
 
 
 
 
 
Ethan Buchman ab37f2d3b7 update docker for GOPATH tendermint install 9 years ago
..
Dockerfile docker: move FROM to golang:1.4 because 1.4.2 broke 9 years ago
README.md docker fixups 9 years ago
docker.sh update docker for GOPATH tendermint install 9 years ago
run.sh update docker for GOPATH tendermint install 9 years ago

README.md

Persistence

It's good practice to use a data-only container, alongside the main application. The docker.sh script sets it all up for you, and provides the same functionality as -v host_dir:image_dir but by copying the data rather than mounting it.

To Play

The commands should work from tendermint/tendermint or tendermint/tendermint/DOCKER, save the removal of DOCKER from the path.

Get quickly caught up with the testnet: FAST_SYNC=true ./DOCKER/docker.sh

Use a pre-existing ~/.tendermint: VC=~/.tendermint NO_BUILD=true ./DOCKER/docker.sh

This is like doing -v ~/.tendermint:/data/tendermint, but better.

Use NO_BUILD to avoid waiting if the image is already built.

Rerunning docker.sh will require you to delete the old containers:

docker rm mint mintdata

However, if you remove the mintdata container, you delete the data (the blockchain). If you don't use the VC option, your key will be deleted too

To avoid deleting and recreating the data container, use

VD=true NO_BUILD=true ./DOCKER/docker.sh

Of course, once running, you can just control the main container with docker stop mint and docker start mint