42d0670de246c17f39506bc2e5e5f098623b3ada
FAQ.md
... | ... | @@ -54,6 +54,22 @@ We used to assign ASN in the 64600-64855 range, where you would get ASN 64600+X |
54 | 54 | |
55 | 55 | Prior to using ASNs in the new private ASN range 4200000000-4294967294 ([RFC6996](http://tools.ietf.org/html/rfc6996)) Some ASNs were allocated from the [ASN reserved block](http://www.iana.org/assignments/as-numbers/as-numbers.xhtml) in the 76100-76199 range. |
56 | 56 | |
57 | +### Why can't my Docker containers connect to other DN42 hosts? |
|
58 | + |
|
59 | +By default, Docker overlaps with the entire DN42 range and then some. (172.16.0.0/12 == 172.16.0.0 - 172.31.255.255) |
|
60 | + |
|
61 | +In order to prevent this, you need to supply a different subnet range to the Docker daemon. This can be done by creating or updating `/etc/docker/daemon.json` with something along the following (this will use 192.168.128.0/18 == 192.168.128.0 - 192.168.128.0 - 192.168.191.255) |
|
62 | +```json |
|
63 | +{ |
|
64 | + "default-address-pools" : [ |
|
65 | + { |
|
66 | + "base" : "192.168.128.0/18", |
|
67 | + "size" : 24 |
|
68 | + } |
|
69 | + ] |
|
70 | +} |
|
71 | +``` |
|
72 | +Note, I (@bri / AS4242422825) have only tested this with Docker version 23.0.0, build e92dd87. But it should work with any current version. I don't know how Swarm etc. networking works, this might need additional tweaking for other versions. (Referenced from https://straz.to/2021-09-08-docker-address-pools/ and https://docs.docker.com/network/bridge/ — I used this to get my `thelounge` container to connect to hackint.dn42.) |
|
57 | 73 | |
58 | 74 | ### Can I update the wiki? |
59 | 75 |