執行個體化過程出現了,Error: The required parameter ‘channelID’ is empty. Rerun the command with -C flag
Usage:
peer chaincode instantiate [flags]
Flags:
-C, --channelID string The channel on which this command should be executed
–collections-config string The fully qualified path to the collection JSON file including the file name
–connectionProfile string Connection profile that provides the necessary connection information for the network. Note: currently only supported for providing peer connection information
-c, --ctor string Constructor message for the chaincode in JSON format (default “{}”)
-E, --escc string The name of the endorsement system chaincode to be used for this chaincode
-h, --help help for instantiate
-l, --lang string Language the chaincode is written in (default “golang”)
-n, --name string Name of the chaincode
–peerAddresses stringArray The addresses of the peers to connect to
-P, --policy string The endorsement policy associated to this chaincode
–tlsRootCertFiles stringArray If TLS is enabled, the paths to the TLS root cert files of the peers to connect to. The order and number of certs specified should match the --peerAddresses flag
-v, --version string Version of the chaincode specified in install/instantiate/upgrade commands
-V, --vscc string The name of the verification system chaincode to be used for this chaincode
Global Flags:
–cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint
–certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint
–clientauth Use mutual TLS when communicating with the orderer endpoint
–connTimeout duration Timeout for client to connect (default 3s)
–keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint
-o, --orderer string Ordering service endpoint
–ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer.
–tls Use TLS when communicating with the orderer endpoint
–transient string Transient map of arguments in JSON encoding
解決方案:
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi -f $(docker image|grep “dev-” |awk ‘{print $3}’)
然後重新執行一下