EvilFreelancer / docker-routeros

Mikrotik RouterOS inside Docker container
https://hub.docker.com/r/evilfreelancer/docker-routeros/
MIT License
369 stars 132 forks source link

How to run in host mode? #16

Closed lls2wow closed 7 months ago

lls2wow commented 2 years ago

Hi I use this command run :

docker run --cap-add=NET_ADMIN --device=/dev/net/tun --network host -ti evilfreelancer/docker-routeros

It start ok but cant connected with winbox and mikrotik self cant ping the gateway

wgcontrol commented 7 months ago

answer please

EvilFreelancer commented 7 months ago

Hi! This is not possible, because RouterOS is running inside QEMU virtual machine inside a container.

But you may use network_mode: host and your QEMU VM will have direct access to host network, this mean you will need to change settings in entrypoint.sh manually.