新增 --extra-host 參數 #24

Open
opened 2021-12-08 21:15:18 -05:00 by kth-tw · 0 comments
kth-tw commented 2021-12-08 21:15:18 -05:00 (Migrated from github.com)

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)

# 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)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cathayddt/bdk#24
No description provided.