解决方法:修改原网卡配置文件,可以改成如下:
[root@docker network-scripts]# cat ifcfg-eth0
DEVICE="eth0"
NAME="eth0"
ONBOOT=yes
BOOTPROTO=dhcp