Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (16.8k points)

I have hyperledger fabric network setup on my local machine with a single validating node. I am developing a chaincode and would like to clear my blockchain. I have read that the hyperledger fabric stores the database under /var/hyperledger. However, I do not see this hyperledger directory under /var. Is there another location for this directory? My development platform is MAC and I am using docker-compose to start my hyperledger fabric network.

1 Answer

0 votes
by (14.4k points)
edited by

In general, Hyperledger Fabric stores the database in /var/hyperledger/production/db within the file system for the validating node. For navigating to the validating node, the following command can be used, 

docker exec -it substitute_container_name bash

Want to make your career in Blockchain? Enroll in Blockchain Course to acquire the essential skills.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.6k answers

500 comments

108k users

Browse Categories

...