The persistent bus network takes a subnet from the default pool, which a DinD job's first network can also get

glci's persistent bus network is created without a fixed subnet, so Docker gives it the first free subnet from its default address pool (usually 172.18.0.0/16). A docker:dind service starts with an empty daemon, so the first network a job creates inside DinD gets the same 172.18.0.0/16. Traffic from inside DinD to the mock server or registry on the bus network then goes to DinD's own network, and things like docker login $CI_REGISTRY are refused.

!264 (merged) (#179 (closed)) handles the same kind of collision for 172.17.0.1 (the default bridge, or the host-gateway sentinel on native Linux).

Fix idea: create the bus network with a fixed, rarely used subnet (configurable under [network], global-only), or pick one that does not overlap the default pools DinD uses.