How to store data in Hyperledger Fabric after restart?

0 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,040 points
347 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 27,620 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

How to ensure data privacy in Hyperledger Fabric?

There are different ways data privacy in ...READ MORE

answered Jan 30 in Blockchain by Omkar
• 65,820 points
101 views
+1 vote
1 answer

How to store state data in Ethereum blockchain?

You won't have to overwrite the whole ...READ MORE

answered Apr 24, 2018 in Blockchain by Shashank
• 10,330 points
37 views
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,120 points
56 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to control visibility of assets in Hyperledger Fabric?

you can use proof of Authority consensus ...READ MORE

answered Jul 10, 2018 in Blockchain by digger
• 27,620 points
63 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.