创建虚拟网络
#docker network create –subnet=172.18.0.0/16 mynetwork
使用固定ip,安装openwrt
#docker run -d -p 81:80 –network=mynetwork –ip=172.18.0.2 –dns=223.5.5.5 –dns=114.114.114.114 –name=openwrt dmtc/openwrt:latest /sbin/init
仅供个人参考
End of the universe is coding.
创建虚拟网络
#docker network create –subnet=172.18.0.0/16 mynetwork
使用固定ip,安装openwrt
#docker run -d -p 81:80 –network=mynetwork –ip=172.18.0.2 –dns=223.5.5.5 –dns=114.114.114.114 –name=openwrt dmtc/openwrt:latest /sbin/init
仅供个人参考