-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Containers attached to custom network don't start #6870
Comments
Hi @xwillq, I see two issues with your
Docker Desktop v4.20 ships a new version of the Engine (ie. v24). This new Engine version contains some changes related to the way we do IPAM. Although we took great care to not break anything, it looks like we didn't anticipate this specific edge-case where IPAM config is wrong. I think we won't revert back to the old behavior. However, I admit this user experience isn't great: your In previous Desktop/Engine versions, your network was producing IP addresses in the range As your |
Hi, thanks for explanation! I don't understand second issue you outlined. If I set
Yeah, makes sense. Preserving undefined behavior caused by broken configs should't be a priority. And if
As far as I understand, If you want to see more concrete example, here is my repo. You can find command to create a network in |
@xwillq Sorry to not come back to you earlier. The Engine PR is moving and should now be in its latest review cycle. It'll add validation steps to prevent users to create networks with invalid config. Hopefully it'll be released in Engine v25.0 and available in Docker Desktop in one or two releases.
Yes, absolutely! I totally ignored the first issue when I said "it should be
That makes sense! I now realize there's potentially a third issue with your initial |
|
Description
I have network where I define custom
subnet
,ip-range
andgateway
. After updating to Docker Desktop 4.20 (from 4.19, though I don't remember exact version), starting containers attached to this network gives errordocker: Error response from daemon: invalid bit range [0, 16777215).
. Before update everything was working fine.Reproduce
All of the steps were performed after reseting to factory defaults, without touching anything else.
docker network create --subnet 172.92.0.0/16 --ip-range 172.92.0.0/8 --gateway 172.92.0.1 main
docker run --network main alpine
Second command gives
docker: Error response from daemon: invalid bit range [0, 16777215).
Expected behavior
No response
docker version
Client: Cloud integration: v1.0.33 Version: 24.0.2 API version: 1.43 Go version: go1.20.4 Git commit: cb74dfc Built: Thu May 25 21:51:16 2023 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.20.1 (110738) Engine: Version: 24.0.2 API version: 1.43 (minimum version 1.12) Go version: go1.20.4 Git commit: 659604f Built: Thu May 25 21:50:59 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: v1.1.7-0-g860f061 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
366DA27F-A3A9-4895-92C6-1B9F3B20F92C/20230609151052
Additional Info
No response
The text was updated successfully, but these errors were encountered: