報(bào)錯(cuò)癥狀:
Failed to connect to raw.githubusercontent.com port 443: Connection refused
解決方案
打開 https://www.ipaddress.com/ 輸入訪問不了的域名 raw.githubusercontent.com
- 查詢到的真實(shí)ip地址
宿主機(jī) hosts 添加
199.232.96.133 raw.githubusercontent.com
Dockerfile添加
# Dockfile
# laradock測試時(shí),這條命令需要和curl在同一個(gè)RUN命令下一起執(zhí)行才有效, 寫在其他地方無效
RUN echo '199.232.96.133 raw.githubusercontent.com' >> /etc/hosts \
&& curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
