New swarm network overlaps with bridge subnet #50011
Labels
area/networking/d/overlay
area/networking/ipam
area/networking
area/swarm
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
version/28.1
Description
We are frequently encountering an issue where a new overlay network created by
docker stack deploy
overlaps with the bridge subnet even though there still are a lot of unused subnets available in our address pool.The newly created service refuses to start any tasks with the error
invalid pool request: Pool overlaps with other one on this address space
.The newly created network likely causing this issue has the same subnet as the bridge network:
Interestingly, Docker has only allocated networks in
10.0.x.x/24
and10.90.x.x/24
ranges (except for the ingress network at10.255.0.0/16
), even though our default address pool is10.0.0.0/8
.Reproduce
docker stack deploy -c docker-compose.yml new-stack
Expected behavior
The newly created network should not overlap with an existing network.
docker version
Client: Docker Engine - Community Version: 28.1.1 API version: 1.49 Go version: go1.23.8 Git commit: 4eba377 Built: Fri Apr 18 09:52:18 2025 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 28.1.1 API version: 1.49 (minimum version 1.24) Go version: go1.23.8 Git commit: 01f442b Built: Fri Apr 18 09:52:18 2025 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.27 GitCommit: 05044ec0a9a75232cad458027ca83437aae3f4da runc: Version: 1.2.5 GitCommit: v1.2.5-0-g59923ef docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
OS info:
Allocated docker networks across all cluster nodes (collected with
docker network inspect $(docker network ls -q)
on each host):The text was updated successfully, but these errors were encountered: