% IP addr
Lo0: flags=8049 & lt; UP, LOOPBACK, RUNNING, MULTICAST> Mtu 16384
Inet 127.0.0.1/8 lo0
1/128 inet6: :
Inet6 fe80: : 1/64 scopeid 0 x1
En0: flags=8863 & lt; UP, BROADCAST, SMART, RUNNING, SIMPLEX, MULTICAST> Mtu 1500
Mr 3 c: 15: c2: bd: 8 d: a0
Inet6 fe80: : 10 ae: f240:25 e5: a6ad/64 secured scopeid 0 x4
Inet 192.168.3.10/24 BRD 192.168.3.255 en0
Awdl0: flags=8943 & lt; UP, BROADCAST, RUNNING, PROMISC, SIMPLEX, MULTICAST> Mtu 1484
A: Mr 0 a3:4 f: 73:8 c: 94
Inet6 fe80: : 8 a3:4 FFF: fe73:8 c94/64 scopeid 0 x9
Llw0: flags=8863 & lt; UP, BROADCAST, SMART, RUNNING, SIMPLEX, MULTICAST> Mtu 1500
A: Mr 0 a3:4 f: 73:8 c: 94
Inet6 fe80: : 8 a3:4 FFF: fe73:8 c94/64 scopeid 0 xa
Utun0: flags=8051 & lt; UP, POINTOPOINT, RUNNING, MULTICAST> Mtu 1380
Inet6 fe80: : 4992-863 - d: 5 b8c: 4013/64 scopeid 0 xb
Utun1: flags=8051 & lt; UP, POINTOPOINT, RUNNING, MULTICAST> Mtu 2000
Aa6 inet6 fe80: : 1:766 c: 90 a9:18 f5/64 scopeid 0 xc
Then start a Debian container, eth0 is 192.168.65.3:
% docker run - it -.net=host 1510 e8501783
Root @ docker - desktop:/# IP addr
1: lo: & lt; The LOOPBACK, UP, LOWER_UP & gt; Mtu 65536 qdisc noqueue state UNKNOWN group, the default qlen 1000
The link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00
Inet 127.0.0.1/8 BRD 127.255.255.255 scope host lo
Valid_lft forever preferred_lft forever
Inet6: : 1/128 scope host
Valid_lft forever preferred_lft forever
2: eth0: & lt; BROADCAST and MULTICAST, the UP, LOWER_UP & gt; Mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
The link/Mr 02:50:00:00:00:01 BRD ff: ff: ff: ff: ff: ff
Inet 192.168.65.3/24 BRD 192.168.65.255 scope global eth0
Valid_lft forever preferred_lft forever
Inet6 fe80: : 50: ff: fe00:1/64 scope link
Valid_lft forever preferred_lft forever
3: tunl0 @ NONE: & lt; NOARP> Mtu 1480 qdisc it state DOWN group default qlen 1000
The link/ipip 0.0.0.0 BRD 0.0.0.0
4: ip6tnl0 @ NONE: & lt; NOARP> Mtu 1452 qdisc it state DOWN group default qlen 1000
The link/tunnel6: : BRD: :
5: docker0: & lt; NO - CARRIER, BROADCAST, MULTICAST, UP> Mtu 1500 qdisc noqueue state DOWN group default
The link/Mr 02:42:15:18:42:9 3 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: : were ff: fe18:4293/64 scope link
Valid_lft forever preferred_lft forever
Use -.net=host option, why IP address is not the same?