[英]Hyperledger sawtooth installation problems. No connectivity between host computer and docker container
[英]Hyperledger sawtooth with docker (Test network tutorial). Connectivity problem between the nodes of the network
我正在嘗試像下面的教程一樣設置 sawtooth.network。
我按照教程中的說明使用以下docker-compose.yaml文件使用 pbft consesus 引擎創建 5 個節點的 sawtooth.network。
問題是,一旦我嘗試通過向 shell 容器的第一個節點上的 REST API 提交對等查詢來檢查 .network 上是否發生對等互連,我得到連接被拒絕的答案:
curl: (7) Failed to connect to sawtooth-rest-api-default-0 port 8008: Connection refused
容器之間的連接似乎工作正常(我已經從容器內部使用 ping 進行了檢查)。
我懷疑問題源於 docker-compose.yaml 文件的以下行:
sawtooth-validator -vv \
--endpoint tcp://validator-0:8800 \
--bind component:tcp://eth0:4004 \
--bind consensus:tcp://eth0:5050 \
--bind network:tcp://eth0:8800 \
--scheduler parallel \
--peering static \
--maximum-peer-connectivity 10000
更具體地說是 --bind 選項。 我注意到eth0沒有正確解析到 container.network 的 IP,而是解析到環回:
您認為這可能是問題所在,還是我可能忽略了其他事情?
謝謝
看起來當我在這里發布一些東西時,答案就會神奇地顯現出來。
反斜杠字符未正確解釋,因此未考慮 --bind 選項,默認為環回。
我修復它的方法是將整個命令放在同一行或使用雙反斜杠。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.