Re: remove chaincode instant completely


Kimheng SOK
 

Thank,

Yes, you are rights I need to remove all the chaincode images otherwise it remember the instants of the previous instantiate chaincode, 
even if I install and instantiate new chaincode source code with the same chaincode name, it still link to the previous chaincode and it doesn't show any error message.

It took me two days to figure out why, my new source code doesn't work and always execute the old version source code and I need to keep changing the name of the chaincode.

Finally, I need to do : docker rmi -f $(docker images dev-* -q)


On Wed, Sep 11, 2019 at 10:32 AM 刘 宇翔 <david-khala@...> wrote:
do not try to remove all docker image, but focused on chaincode images which by default starting with 'dev-'


发件人: fabric@... <fabric@...> 代表 Kimheng SOK <sok.kimheng@...>
发送时间: 2019年9月11日 4:32
收件人: Sok.kimheng <sok.kimheng@...>
抄送: Nye Liu <nye@...>; fabric@... <fabric@...>
主题: Re: [Hyperledger Fabric] remove chaincode instant completely
 
Problem solved: When I remove the whole images
docker rmi -f $(docker images -q )
But it takes time to pull the images back when we start the network again

On Wed, Sep 11, 2019 at 3:08 AM Kimheng SOK via Lists.Hyperledger.Org <sok.kimheng=gmail.com@...> wrote:
I remove everything: 
docker rm $(docker ps -aq)
What else do we need to remove?

On Wed, Sep 11, 2019 at 2:55 AM Nye Liu <nye@...> wrote:

You have to remove the docker peer chaincode container, which is created by the peer itself. It shows up in docker ps.

On 9/10/2019 12:51 PM, Kimheng SOK wrote:
Dear all,

I have question about fabric chaincode, I am running the  node language.

After I update my chaincode. Even if I remove all the docker container of the previous launch and start to run the network again. It's seem that the network still remember the previous instant of my chaincode and I can't instantiate chaincode with the same chaincode name again, so i need to change the new chaincode name.

I wonder where does the instant of the chaincode located.
Even if i remove everything from /var/hyperledger/production/chaincode from every peer , it still remember.

So my question is how to remove all the instant of the chaincode completely.

Bests,

Join fabric@lists.hyperledger.org to automatically receive all group messages.