-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: cannot connect to Docker endpoint #27
Comments
Kubernetes version |
with Kubernetes version . 1.9.10_1530 in IBM Kube , deployment works well |
i v tried with #28 changes in IBM kube ver 1.12.2_1527 . again. something else i am doing wrong ? |
$ kubectl get pods |
to make "./setup_blockchainNetwork.s" to Create Docker deployment , i had to # comment out if : Create Docker deployment#if [ "$(cat configFiles/peersDeployment.yaml | grep -c tcp://docker:2375)" != "0" ]; then
#fi please correct my steps |
@SKD-SKD Hi, I did modify the README to mention if you're using v1.11+ of k8s. If the Kubernetes' Server version is v1.11.x or above, the cluster may be using
Modify the
So that if you modify that yaml file, the script will know that you're trying to deploy and use a docker daemon in a container. |
all good ! script finished successfully, |
Thanks @SKD-SKD and @AnthonyAmanse. Will merge this PR. |
Hello, I am using latest version of Kubernetes (1.17.2), so > 1.11 and I made the changes mentioned: deploy a docker pod (dind) with configFiles/docker.yaml and configFiles/docker-volume.yaml and changed unix:///host/var/run/docker.sock to tcp://docker:2375, but the install of the chaincode does not work. On the peer, it says: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: cannot connect to Docker endpoint So it seems it cannot connect to the Docker endpoint. But I cannot find how to fix this. Thanks! |
running in IBM container cloud ,
getting :
error on the chaincodeinstantiate pods:
kubectl get pods
NAME READY STATUS RESTARTS AGE
blockchain-ca-645b8f67fc-jrg5n 1/1 Running 0 48m
blockchain-orderer-b5679c968-dvm4f 1/1 Running 0 48m
blockchain-org1peer1-54c689bbd5-kqbqm 1/1 Running 0 48m
blockchain-org2peer1-7768db4f98-qnfhd 1/1 Running 0 48m
blockchain-org3peer1-56ff98b9d6-t4shb 1/1 Running 0 48m
blockchain-org4peer1-7cf44cb7bb-9flzk 1/1 Running 0 48m
chaincodeinstall-tn74d 0/4 Completed 0 48m
chaincodeinstantiate-gqlcr 0/1 Error 0 23m
chaincodeinstantiate-vmz2x 0/1 Error 0 23m
copyartifacts-fg9ql 0/1 Completed 0 53m
createchannel-jnbmb 0/2 Completed 0 48m
joinchannel-d4pjn 0/4 Completed 0 48m
utils-w5fnq 0/2 Completed 0 51m
kubectl logs chaincodeinstantiate-gqlcr
2018-11-14 19:47:34.091 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2018-11-14 19:47:34.092 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: cannot connect to Docker endpoint
The text was updated successfully, but these errors were encountered: