How to store data in Hyperledger Fabric after restart

+2 votes

I am using Hyperledger Fabric v0.6 with docker. When I stop and restart the fabric and restart it, the data that was in the fabric was gone.

The code I use to stop and start is as follows:

docker-compose down

docker-compose start

Jul 27, 2018 in Blockchain by slayer
• 29,370 points
4,757 views

1 answer to this question.

0 votes

When you use docker-compose down, all the data and the docker list is removed. To retain your data even after stopping and restarting, try this code to stop the fabric:

docker-compose stop

and then to start, use:

docker-compose up

answered Jul 27, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
1 answer