System shutdown

How does one initiate system shutdown or reboot from within a system-container?

If your container is in system-docker, you could do system-docker restart <container_id> or system-docker stop <container_id>.

If your container is in user docker, you could do docker restart <container_id> or docker stop <container_id>.

Not sure if that answers what you’re looking for…

Not really, I am looking for how to restart the server, not a container. Now that I’m typing this is occurs to me to try reboot in a container and it seems to indeed reboot the box…