Where does hyperledger fabric store the database for the blockchain?

后端 未结 2 1784
悲&欢浪女
悲&欢浪女 2021-02-09 02:45

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

2条回答
  •  忘了有多久
    2021-02-09 03:10

    The Hyperledger Fabric stores the database in /var/hyperledger/production/db within the file system for the validating peer. You can navigate to the validating peer file system by using a command like docker exec -it substitute_container_name bash. I am not aware of another location of the database. If the instructions at https://hub.docker.com/r/ibmblockchain/fabric-peer/ for using Hyperledger Docker images are followed, then the database location should be /var/hyperledger/production/db.

提交回复
热议问题