Steven Green
Steven Green

Reputation: 171

Hyperledger Fabric on VSCode, get error: Error instantiating smart contract: chaincode registration failed: container exited with 1

Using the IBM Blockchain extension on VSCode, I get the following error when trying to instantiate my Smart Contract on my channel: Error instantiating smart contract: chaincode registration failed: container exited with 1

I've tried deleting and building the smart contract package again.

Upvotes: 1

Views: 2302

Answers (2)

Rishikesh Kale
Rishikesh Kale

Reputation: 11

List all the docker containers

docker container ls

Stop the containers

docker container stop containerid

Remove the container

docker rm containerid

Upvotes: 1

Ahan Khan
Ahan Khan

Reputation: 1

Try deleting docker container

  1. enlist all the docker container that is running from the terminal by running the following command Docker container ls
  2. Remove all the running container docker rm [OPTIONS] CONTAINER [CONTAINER...]
  3. docker container stop $(docker container ls -aq)
  4. docker container rm $(docker container ls -aq)
  5. docker image prune
  6. docker volume prune

restart the network and install the package again

Upvotes: 0

Related Questions