- 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" } ] },
- 外網配置的結果,每次都不一樣,有 172.21.0.0,有 172.22.0.0
- 解決方案
$ docker network create nginx-net --subnet="172.20.0.0/16" d2ce74e08657015a9db59f3ac4757a7dd3edd213888615bbb6d6c9c66cf88a9a
- 參考資料
- Error response from daemon: could not find an available, ...
$ docker network create nginx-net --subnet="172.17.0.0/16" Error response from daemon: Pool overlaps with other one on this address space
- Error response from daemon: could not find an available, ...
- 操作指令
- Q1: add-apt-repository: command not found
- 操作指令
# add-apt-repository ppa:deadsnakes/ppa bash: add-apt-repository: command not found
- 情境
- docker
$ docker run --rm -it ubuntu:20.04 bash
- docker
- 解決方案
# apt-get update # apt-get install -y software-properties-common # apt-get update # 需要
- 參考資料
- 操作指令
- 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