新增 --extra-host 參數 #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ISSUE
說明 (Description)
新增指令參數
--extra-host種類 (Issue Type)
[x] Feature Request
[ ] Report Bug
[ ] Other
新功能 (Feature Request)
希望新增此功能的原因 (Reason for this Feature)
因為 peer/orderer 都在 docker 裡面跑,吃不到 host 的
/etc/hosts若機器在內網,且沒有內網 DNS 時,無法透過 domain 解析到其他 peer/orderer
可能的解法 (Proposed Solution)
在跑 docker run 的指令把 extra hosts 加到
--add-host的參數在產 docker-compose.yaml 的指令,將把 extra hosts 加到
extra_hosts欄位其他說明 (Additional Context)