Hyperledger Composer Error Identity has not been registered once issued after restart

后端 未结 1 573
难免孤独
难免孤独 2020-12-22 05:13

I am using hyperledger composer 0.16.0 and I want to persist data to database so that data can be used even after restart. so I am using loopback-connector-mongodb

1条回答
  •  天命终不由人
    2020-12-22 05:26

    The startFabric.sh does more than just start the Fabric - it actually removes your Containers and recreates new Containers from the Docker Images. The impact of this is that you lose all your data and your Business Network from the Fabric.

    If you want to stop and start your Fabric after you have created it you need to change to the directory where the docker-compose.yml file is (in my case /home/rob/fabric-tools/fabric-scripts/hlfv1/composer)

    Run docker-compose stop to stop the Fabric Containers and docker-compose start to restart where you left off. It is necessary to be in the correct folder before using the docker-compose command.

    0 讨论(0)
提交回复
热议问题