How to disable reboot function with compile?

I use openwrt in docker (with --privileged)
when I stop docker container(openwrt),the host system reboot too...
so I think If I can remove reboot command in sourcecode,that I can use with docker and don't reboot when docker stop openwrt

1 Like

The primary purpose of hypervisors, containerization and namespaces is to sandbox the VM, if a simple reboot can escape to the host, the containerization tool can't be very useful, nor secure.

2 Likes

I use rk3399-box(armbian),I try to compile openwrt to boot on primary device.
But has some problems,so I run in docker instead

Try other virtualization solutions:
https://openwrt.org/docs/guide-user/virtualization/start

Or use more suitable support channels since the issue is Docker-specific:
https://forums.docker.com/

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.