I tried to deploy a chaincode, which compiles without errors.
But then I got the following error in the docker logs:
08:44:26.560 [consensus/noops] processTransactions -> DEBU 053 Starting TX batch with timestamp: seconds:1473929066 nanos:560229743
08:44:26.560 [consensus/noops] processTransactions -> DEBU 054 Executing batch of 1 transactions with timestamp seconds:1473929066 nanos:560229743
08:44:26.563 [chaincode] getArgsAndEnv -> DEBU 055 Executable is /opt/gopath/bin/1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84
08:44:26.564 [chaincode] Deploy -> DEBU 056 deploying chaincode 1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84(networkid:dev,peerid:vp0)
08:44:26.564 [container] lockContainer -> DEBU 057 waiting for container(dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
08:44:26.564 [container] lockContainer -> DEBU 058 got container (dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
**08:44:26.565 [dockercontroller] deployImage -> ERRO 059 Error building images: cannot connect to Docker endpoint**
Then when I try to deploy the chaincode I get a different error:
vp0_1 | 06:09:33.441 [consensus/noops] handleChannels -> DEBU 048 Process block due to time
vp0_1 | 06:09:33.441 [consensus/noops] processTransactions -> DEBU 049 Starting TX batch with timestamp: seconds:1475042973 nanos:441383619
vp0_1 | 06:09:33.441 [consensus/noops] processTransactions -> DEBU 04a Executing batch of 1 transactions with timestamp seconds:1475042973 nanos:441383619
vp0_1 | 06:09:33.446 [chaincode] getArgsAndEnv -> DEBU 04b Executable is /opt/gopath/bin/1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84
vp0_1 | 06:09:33.446 [chaincode] Deploy -> DEBU 04c deploying chaincode 1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84(networkid:dev,peerid:vp0)
vp0_1 | 06:09:33.446 [container] lockContainer -> DEBU 04d waiting for container(dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
vp0_1 | 06:09:33.446 [container] lockContainer -> DEBU 04e got container (dev-vp0-1e90b51f9129b97d5312d5c24364085777602a06d40d6e2c9209b4f30d7e66facb26e956443028611539962acc6de550eba03bbb1fd0e7bbd655cb19c5a6ef84) lock
vp0_1 | 06:09:37.608 [peer] ensureConnected -> DEBU 04f Touch service indicates no dropped connections
vp0_1 | 06:09:37.608 [peer] ensureConnected -> DEBU 050 Connected to: [] vp0_1 | 06:09:37.608 [peer] ensureConnected -> DEBU 051 Discovery knows about: []
vp0_1 | 06:09:39.533 [dockercontroller] deployImage -> ERRO 052 Error building images: Tag latest not found in repository docker.io/hyperledger/fabric-baseimage
vp0_1 | 06:09:39.533 [dockercontroller] deployImage -> ERRO 053 Image Output:
So how do I solve this?