HyperLedger fabric chaincode not updated

后端 未结 4 1448
青春惊慌失措
青春惊慌失措 2021-01-15 16:19

I am trying to follow along this sample Hyperledger Fabric code: https://github.com/hyperledger/education/tree/master/LFS171x/fabric-material

Initially I replaced ch

4条回答
  •  一整个雨季
    2021-01-15 16:46

    To make the changes in the chaincode made reflect, following steps were taken: 1. Stop all the containers

    docker stop $(docker ps -aq)
    
    1. Delete all the containers

    docker rm -f $(docker ps -aq)

    1. Find the following image when you run docker images One of the output will be this among the other hyperledger binary images.

    REPOSITORY TAG, IMAGE ID, CREATED, SIZE: dev-peer0.org1.example.com-tuna-app-1.0-b58eb592ed6ced10f52cc063bda0c303a4272089a3f9a99000d921f94b9bae9b, latest, 0919d7c15f0a, 3 minutes ago, 172MB

    Delete it using the following command:

    docker rmi 0919d7c15f0a
    

    Run the fabric again using ./startFabric.sh, npm install, node registerAdmin.js, node registerUser.js and node server.js. It should work

提交回复
热议问题