OpenWrt-Docker icon indicating copy to clipboard operation
OpenWrt-Docker copied to clipboard

docker 运行openwrt 为 host网络模式,直接给我宿主机界面接管了.....

Open baozitao opened this issue 2 years ago • 3 comments

背景:

  1. 宿主机为Linux manjaro操作系统,跑的docker openwrt
  2. 使用docker 运行openwrt 为macvlan模式,重启宿主机,一切正常;

问题: 当我使用docker 运行openwrt 为 host 模式时,重启宿主机,宿主机直接进openwrt 的终端了,不再进入宿主机的界面

docker run --restart always --name openwrt -d --network host--privileged sulinggg/openwrt:amd64 /sbin/init

这一运行,我重启我的linux 机器,直接进入openwrt的命令行界面,我的原来宿主机的界面进不去了,真是奇葩......这现象是正常的么?

baozitao avatar Dec 25 '22 12:12 baozitao