NethServer Version: v7.8
I am considering the posibility of running NethServer inside Docker and exposing the relevant ports to the host in order to access the various NethServer services.
I am considering how the NethServer would respond to the following scenarios:
- a graceful shutdown or restart of the host
- a Docker service restart command or restarting the Docker container
From the little bit of reading I have done, I suspect that the first scenario may be okay if I set the shutdown timeout for Docker to something like 2 or 3 minutes instead of relying on the default of 10 seconds so it doesn’t issue the kill command on the container prematurely, however I am uncertain of this.
For the second scenario, I am don’t know what the behaviour is and if the same shutdown principles apply as I just described for the first scenario.
I am also wondering if something else like qemu might be more appropriate for this task?
And just to preempt the obvious question or suggestion, unfortunately Proxmox is not an option due to system resources. If I had enough system resources on the host, I would use Proxmox without a doubt.