I have a test farm set up with a few rancherOS hosts that are destroyed and PXE booted after running tests. It would be nice to be able to reboot the host from a user container. So far I have found multiple posts around the internet that achieve this by mounting systemd as a volume and telling the host’s systemd to kick off the reboot process. I also found someone using magic sysrq to perform the reboot, but I want something that has a smaller risk of being fixed in Docker or RancherOS in the future and breaking my workflow for these disposable hosts. Discussion on magic sysrq -> https://stackoverflow.com/questions/24750137/restarting-host-from-docker-container
What is the preferred way to reboot the host from within a user docker container on a clean RancherOS machine?