Add extra_host entry in docker-compose.yml file like this:
extra_hosts:
- "peer0.org2.example.com:192.168.1.28"
- "ca.org2.example.com:192.168.1.28"
- "peer0.org3.example.com:192.168.1.15"
- "ca.org3.example.com:192.168.1.15"
Like this do entries for all orderers, CA, peers on both machines(hosts)
And do same host entry in host file:
sudo nano /etc/hosts - edit this file
192.168.1.28 peer0.org2.example.com
192.168.1.28 ca.org2.example.com
192.168.1.15 peer0.org3.example.com
192.168.1.15 ca.org3.example.com
Like this do entries for all orderers, CA, peers...on both machines(hosts)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…