root@racknerd-457f52:~/testdocker# docker run -dt debian sleep infinity
f8bc537e3e412dd897209c61384919f46539658d32782730290935ef396b29c5
root@racknerd-457f52:~/testdocker# docker network inspect bridge
[
{
"Name": "bridge",
"Id": "4fdd20eba414d4c7d253f1f070d7915f5222f8e2462ea9c2228f82384a36b75b",
"Created": "2024-11-30T07:21:30.427539493Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"f8bc537e3e412dd897209c61384919f46539658d32782730290935ef396b29c5": {
"Name": "compassionate_jang",
"EndpointID": "0320257e79fd738167e681269370a612ca45bf1a2accb1012fe622df20eedd33",
"MacAddress": "02:42:ac:11:00:03",
"IPv4Address": "172.17.0.3/16",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Labels": {}
}
]
root@racknerd-457f52:~/testdocker# ping 172.17.0.3
PING 172.17.0.3 (172.17.0.3) 56(84) bytes of data.
64 bytes from 172.17.0.3: icmp_seq=1 ttl=64 time=0.356 ms
64 bytes from 172.17.0.3: icmp_seq=2 ttl=64 time=0.101 ms
^C
--- 172.17.0.3 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1010ms
rtt min/avg/max/mdev = 0.101/0.228/0.356/0.127 ms
root@racknerd-457f52:~/testdocker# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
f8bc537e3e41 debian "sleep infinity" 55 seconds ago Up 55 seconds
compassionate_jang
root@racknerd-457f52:~/testdocker# docker exec -it f8bc537e3e41 /bin/bash
root@f8bc537e3e41:/# apt-get update
Ign:1 http://deb.debian.org/debian bookworm InRelease
Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
0% [Connecting to deb.debian.org]
0% [Connecting to deb.debian.org]^C
Вывод ip r на хосте
root@racknerd-457f52:~/testdocker# ip r
default via 23.95.146.1 dev eth0 onlink
10.0.0.0/24 dev wg0 proto kernel scope link src 10.0.0.1
23.95.146.0/24 dev eth0 proto kernel scope link src 23.95.146.210
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
Вывод ip a на хосте
root@racknerd-457f52:~/testdocker# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:16:3c:3c:e7:06 brd ff:ff:ff:ff:ff:ff
altname enp0s3
altname ens3
inet 23.95.146.210/24 brd 23.95.146.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::216:3cff:fe3c:e706/64 scope link
valid_lft forever preferred_lft forever
3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 10.0.0.1/24 scope global wg0
valid_lft forever preferred_lft forever
4: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:49:90:da:96 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:49ff:fe90:da96/64 scope link
valid_lft forever preferred_lft forever
6: veth967efd3@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
link/ether fe:55:92:b5:6b:97 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::fc55:92ff:feb5:6b97/64 scope link
valid_lft forever preferred_lft forever
9: br-77acab530700: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:6c:10:1e:88 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-77acab530700
valid_lft forever preferred_lft forever
10: br-d7b9fe88d56a: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:bd:e0:5a:12 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-d7b9fe88d56a
valid_lft forever preferred_lft forever
13: br-4457b7548d9b: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:7b:60:5e:48 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-4457b7548d9b
valid_lft forever preferred_lft forever
14: br-2edc86797c3b: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:19:cf:76:50 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-2edc86797c3b
valid_lft forever preferred_lft forever
17: br-e27012a7d8bf: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:9d:ed:3c:72 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-e27012a7d8bf
valid_lft forever preferred_lft forever
18: br-90de94d62a44: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:61:6f:0a:00 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-90de94d62a44
valid_lft forever preferred_lft forever
35: br-a560e3bf3b71: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:c9:cc:50:a2 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-a560e3bf3b71
valid_lft forever preferred_lft forever
36: br-6ba2839c619a: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 02:42:5d:f7:8e:3a brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-6ba2839c619a
valid_lft forever preferred_lft forever
50: veth35d6943@if49: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
link/ether ba:f5:6b:18:68:98 brd ff:ff:ff:ff:ff:ff link-netnsid 1
inet6 fe80::b8f5:6bff:fe18:6898/64 scope link
valid_lft forever preferred_lft forever
Адреса в состоянии DOWN видимо при работе x-ui получаются, но не уверен.
Что можно сделать, чтобы в docker-е заработало обновление системы?