解決 Docker build apt-get update "-yqq" failed Failed to fetch http://xxx 與 IPv4 forwarding is disabled 問題
在試用某家 VPS 廠商的服務時,發現在執行一些服務安裝時,使用 apt-get update -yqq 出現了一些錯誤,在這裡記錄下問題發生的可能原因及解決方案:
WARNING: IPv4 forwarding is disabled. Networking will not work
遇到這問題,解決方式可以直接在系統 sysctl 設定加入允許 ipv4 forward
開啟 sysctl 設定檔案
vim /etc/sysctl.conf
加入以下代碼
Continue Reading