Description
hello,
i try to reconfigure my docker default bridge, but after i used
{
"ipv6": true,
"fixed-cidr-v6": "fe80::/64",
"ip6tables": true,
"experimental": true
}
in daemon.json, its created ipv6 addres on docker0, but when i want to change the cidr in daemon.json, i cannot restart via systemctl restart docker. it fails with
Nov 17 17:36:05 gbc dockerd[8448]: time="2023-11-17T17:36:05.968731732+01:00" level=info msg="Loading containers: start."
Nov 17 17:36:06 gbc dockerd[8448]: time="2023-11-17T17:36:06.381431577+01:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Nov 17 17:36:06 gbc dockerd[8448]: time="2023-11-17T17:36:06.382374332+01:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
Nov 17 17:36:06 gbc dockerd[8448]: failed to start daemon: Error initializing network controller: error creating default "bridge" network: failed to add IPv6 address fe80::1/80 to bridge: file exists
Nov 17 17:36:06 gbc systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
i tried to forcefully remove via "sudo rm /var/lib/docker/network/files/local-kv.db", the folder is empty, but dockerd --debug still spits out the same error that the file exists.
after reediting the daemon.json to the old /64 cidr, restarting works again.
regards
Reproduce
- edit daemon.json to
{
"ipv6": true,
"fixed-cidr-v6": "fe80::/64",
"ip6tables": true,
"experimental": true
}
- restart docker
- reedit daemon.json, change cidr like /80
- try to restart via systemctl restart docker
Expected behavior
No response
docker version
Client: Docker Engine - Community
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:08:02 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:08:02 2023
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: 1.6.24
GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfc
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
Version: 24.0.7
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 11
Running: 11
Paused: 0
Stopped: 0
Images: 24
Server Version: 24.0.7
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc version: v1.1.9-0-gccaecfc
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.1.0-13-amd64
Operating System: Debian GNU/Linux 12 (bookworm)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 31.08GiB
Name: gbc
ID: a13438fe-d85c-4149-886b-05d2850e11e4
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional Info
on my older local machine with debian 12 repo docker, i can change the cidr as-i-wish and restart wihtout a problme.
Client:
Version: 20.10.24+dfsg1
API version: 1.41
Go version: go1.19.8
Git commit: 297e128
Built: Thu May 18 08:38:34 2023
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.24+dfsg1
API version: 1.41 (minimum version 1.12)
Go version: go1.19.8
Git commit: 5d6db84
Built: Thu May 18 08:38:34 2023
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: 1.6.20~ds1
GitCommit: 1.6.20~ds1-1+b1
runc:
Version: 1.1.5+ds1
GitCommit: 1.1.5+ds1-1+b1
docker-init:
Version: 0.19.0
GitCommit:
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.11.2)
compose: Docker Compose (Docker Inc., v2.21.0)
Server:
Containers: 20
Running: 18
Paused: 0
Stopped: 2
Images: 44
Server Version: 20.10.24+dfsg1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 1.6.20~ds1-1+b1
runc version: 1.1.5+ds1-1+b1
init version:
Security Options:
apparmor
seccomp
Profile: default
cgroupns
Kernel Version: 6.1.0-13-amd64
Operating System: Debian GNU/Linux 12 (bookworm)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 14.47GiB
Name: debian-svr
ID: NYSZ:IIV3:YFGV:N4P6:HDDA:ZUES:WA7W:UVKX:TAVP:3INY:X7QQ:7UFQ
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Description
hello,
i try to reconfigure my docker default bridge, but after i used
in daemon.json, its created ipv6 addres on docker0, but when i want to change the cidr in daemon.json, i cannot restart via systemctl restart docker. it fails with
i tried to forcefully remove via "sudo rm /var/lib/docker/network/files/local-kv.db", the folder is empty, but dockerd --debug still spits out the same error that the file exists.
after reediting the daemon.json to the old /64 cidr, restarting works again.
regards
Reproduce
Expected behavior
No response
docker version
Client: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:08:02 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:08:02 2023 OS/Arch: linux/amd64 Experimental: true containerd: Version: 1.6.24 GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523 runc: Version: 1.1.9 GitCommit: v1.1.9-0-gccaecfc docker-init: Version: 0.19.0 GitCommit: de40ad0docker info
Additional Info
on my older local machine with debian 12 repo docker, i can change the cidr as-i-wish and restart wihtout a problme.