问题一:
Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
!!!!!!!!!!!!!!! After 5 attempts, peer0.org1 has failed to join channel 'mychannel' !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
ERROR !!!! Test failed
解决方法一:
在 docker-compose-cli.yaml 中 cli 容器下,添加环境变量 GODEBUG=netdns=go;
在 base/peer-base.yaml 中 peer-base 容器下,添加环境变量 GODEBUG=netdns=go.
environment:
- GODEBUG=netdns=go
解决方法二:
vim /etc/resolv.conf
注释掉 options 的行