-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Module
Core
Testcontainers version
1.19.1
Using the latest Testcontainers version?
No
Host OS
Linux
Host Arch
x86, ARM
Docker version
Client: Docker Engine - Community
Version: 27.0.2
API version: 1.46
Go version: go1.21.11
Git commit: 912c1dd
Built: Wed Jun 26 18:47:28 2024
OS/Arch: linux/amd64
Context: defaultWhat happened?
All of a sudden many of our GitHub action workflows started failing, because our tests couldn't start the containers. The error we see in the logs is:
Caused by: com.github.dockerjava.api.exception.DockerException: Status 403: ***"message":"cannot create network bda9d3d33ed5fdb18b1a5ffc80496e325e7e454f9292f05026cf8796b9aba395 (br-bda9d3d33ed5): conflicts with network bf05f12899f2e8b3b8835115218e4fa5074476c9d53676a31b7ace186d368b2a (br-bf05f12899f2): networks have overlapping IPv4"***
Relevant log output
No response
Additional Information
This has started only after Ubuntu published the new docker version 27 to its repository and our runners upgraded automatically, because we didn't pin the version. I see in the release notes that there have been some changes to networking (and some networking APIs), so I'm wondering if this introduced some race condition.
In our tests, we create many networks concurrently using Network.newNetwork(), and that worked fine so far, as the docker daemon should be assigning subnets in an incrementing fashion.
I was wondering if this is maybe a regression in docker itself, and it's possible, but I wasn't able to reproduce locally with `for n in $(seq 0 256); do docker network create "n$n"& done.