linux内核支持六种名称空间
1、主机名和域名 -------> UTS
2、用户 --------> User
3、文件挂载系统 -------> mount
4、进程间通信 -------> IPC
5、进程PID -------> PID
6、网络 ------> NET
[root@docker ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
9f50659d78cd bridge bridge local
992ea9a0a36e compose_lnmp_lnmp bridge local
e8840f5df773 host host local
b7d3e9a1b1d2 none null local
[root@docker ~]# ip a | grep docker0
5: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
7: vethcef904c@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
此时的docker没有给IP,所以是一个交换机,给了IP就是网卡