{"action":"opened","issue":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/967","repository_url":"https://api.github.com/repos/hyperledger/fabric","labels_url":"https://api.github.com/repos/hyperledger/fabric/issues/967/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/fabric/issues/967/comments","events_url":"https://api.github.com/repos/hyperledger/fabric/issues/967/events","html_url":"https://github.com/hyperledger/fabric/issues/967","id":145726942,"number":967,"title":"Can't query after successful build and starting up 4 VPs running Noops","user":{"login":"RicHernandez2","id":17052305,"avatar_url":"https://avatars.githubusercontent.com/u/17052305?v=3","gravatar_id":"","url":"https://api.github.com/users/RicHernandez2","html_url":"https://github.com/RicHernandez2","followers_url":"https://api.github.com/users/RicHernandez2/followers","following_url":"https://api.github.com/users/RicHernandez2/following{/other_user}","gists_url":"https://api.github.com/users/RicHernandez2/gists{/gist_id}","starred_url":"https://api.github.com/users/RicHernandez2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RicHernandez2/subscriptions","organizations_url":"https://api.github.com/users/RicHernandez2/orgs","repos_url":"https://api.github.com/users/RicHernandez2/repos","events_url":"https://api.github.com/users/RicHernandez2/events{/privacy}","received_events_url":"https://api.github.com/users/RicHernandez2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-04T15:56:20Z","updated_at":"2016-04-04T15:56:20Z","closed_at":null,"body":"Description:\r\n\r\nAfter ironing out path and executable name issues, I was able to start 4 VPs using an unrecognized consensus plugin (therefore defaulting to noops) with the following commandlines:\r\n\r\n\r\n```\r\ndocker run --rm -it -e OPENCHAIN_VM_ENDPOINT=http://172.17.0.1:4243 -e OPENCHAIN_PEER_ID=vp0 -e OPENCHAIN_PEER_ADDRESSAUTODETECT=true -p 5000:5000 hyperledger-peer ./peer peer\r\n\r\ndocker run --rm -it -e OPENCHAIN_VM_ENDPOINT=http://172.17.0.1:4243 -e OPENCHAIN_PEER_ID=vp1 -e OPENCHAIN_PEER_ADDRESSAUTODETECT=true -e OPENCHAIN_PEER_DISCOVERY_ROOTNODE=172.17.0.2:30303 hyperledger-peer ./peer peer\r\n\r\ndocker run --rm -it -e OPENCHAIN_VM_ENDPOINT=http://172.17.0.1:4243 -e OPENCHAIN_PEER_ID=vp2 -e OPENCHAIN_PEER_ADDRESSAUTODETECT=true -e OPENCHAIN_PEER_DISCOVERY_ROOTNODE=172.17.0.2:30303 hyperledger-peer ./peer peer\r\n\r\ndocker run --rm -it -e OPENCHAIN_VM_ENDPOINT=http://172.17.0.1:4243 -e OPENCHAIN_PEER_ID=vp3 -e OPENCHAIN_PEER_ADDRESSAUTODETECT=true -e OPENCHAIN_PEER_DISCOVERY_ROOTNODE=172.17.0.2:30303 hyperledger-peer ./peer peer\r\n\r\n```\r\nSteps to repro:\r\n\r\n1.  Build hyperledger-peer per new readme\r\n2.  Execute above commandlines to start VPs\r\n3.  Deploy using postman as follows:\r\n\r\n```\r\n\r\n{\r\n  \"type\": \"GOLANG\",\r\n  \"chaincodeID\":{\r\n      \"path\":\"github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02\"\r\n  },\r\n  \"ctorMsg\": {\r\n      \"function\":\"init\",\r\n      \"args\":[\"a\", \"100\", \"b\", \"200\"]\r\n  }\r\n}\r\n```\r\n4.  Query using the TID as follows:\r\n\r\n```\r\n{\r\n  \"chaincodeSpec\":{\r\n      \"type\": \"GOLANG\",\r\n      \"chaincodeID\":{\r\n          \"name\":\"3a46d4d629d8c1f931bb29c1b52ca9698cba5d75487771882068975b15f0440fb73bab315f5dad72eaaaeaead5ea6a211ac013cfb8d55c64547d348d51504e7d\"\r\n      },\r\n      \"ctorMsg\":{\r\n          \"function\":\"query\",\r\n          \"args\":[\"b\"]\r\n      }\r\n  }\r\n}\r\n```\r\n5.  Repeat query\r\n\r\nResults:\r\n\r\nKeep getting the following response:\r\n\r\n```\r\n{\r\n  \"Error\": \"Error:Failed to launch chaincode spec(Error starting container: Post http://unix.sock/containers/create?name=dev-jdoe-3a46d4d629d8c1f931bb29c1b52ca9698cba5d75487771882068975b15f0440fb73bab315f5dad72eaaaeaead5ea6a211ac013cfb8d55c64547d348d51504e7d: dial unix /var/run/docker.sock: connect: no such file or directory)\"\r\n}\r\n```\r\n\r\nExpected Results:\r\n\r\nhyperledger peer should write the deploy value to the DB and return the value on query for the TID."}}