Skip to content

Latest commit

 

History

History
65 lines (62 loc) · 1.97 KB

錯誤排除紀錄.md

File metadata and controls

65 lines (62 loc) · 1.97 KB

錯誤排除紀錄

Networking

  • Q1: 網路建立失敗
    • 操作指令
      $ docker network create nginx-net
      Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
    • 情境
      • 內網:建立失敗
      • 外網:建立成功
        • 外網配置的結果,每次都不一樣,有 172.21.0.0,有 172.22.0.0
          "IPAM": {
              "Driver": "default",
              "Options": {},
              "Config": [
                  {
                      "Subnet": "172.21.0.0/16",
                      "Gateway": "172.21.0.1"
                  }
              ]
          },
    • 解決方案
      $ docker network create nginx-net --subnet="172.20.0.0/16"
      d2ce74e08657015a9db59f3ac4757a7dd3edd213888615bbb6d6c9c66cf88a9a
    • 參考資料

Commands

  • Q1: add-apt-repository: command not found

Python

  • Q1: install python 3.5
    add-apt-repository ppa:deadsnakes/ppa
    apt-get update
    apt-get install python3.5 # or 3.6 or 3.7