docker安裝openwrt
docker pull piaoyizy/openwrt-x86
sudo ip link set eth0 promisc on
docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.3 -o parent=eth0 macnet
docker run -d --name=openwrt --restart always --privileged --network macnet --ip 192.168.1.33 piaoyizy/openwrt-x86
docker exec -it openwrt bash
vim /etc/config/network
標(biāo)簽: