1. Download the mirror
Fabric uses levelDB by default
If it is a low-version fabric, please download the corresponding couchdb according to this https://blog.csdn.net/u013288190/article/details/112333006
Second, the configuration file
vim docker-compose-couch.yaml
The configuration in the configuration file means that the configuration parameters of couchdb are appended to the node's container
Three, how to start
1. Close the original
./byfn.sh -m down
2. Generate a new configuration
./byfn.sh -m generate -s couchdb
3. Start
./byfn.sh -m up -s couchdb
Four, browser access
1. Visiting address
http://localhost:5984/_utils/#/_all_dbs
mycc is the name of a certain chain code
Variables a and b in the contract are exclusive
2. Binary attachment format
The value here is a binary attachment.
The chain code can refer to:
3. json format
It can also be set to json format.
The chain code can refer to