Hi Naranden,
Naranden <[email protected]> writes: > Hi, > > Is there a service type for running a Guix system container? For example: I don't think there is a service that would do that in Guix channel. > > ``` > (define container-os > (operating-system ...)) > > (define host-os > (operating-system > (services > (cons* (service container-service-type > (operating-system container-os)) > %base-services)))) > ``` > > If not, is there a way to deploy a real operating system (for example > with guix system vm) that runs a defined container as a service? Definitely, see the virtual-build-machine-service-type and hurd-vm-service-type, you basically need to make a new system service that will make a shepherd service and the command to start is to use linux-image-startup-command with appropriate image, where you give it the operating-system definition you want. I think similar thing should be achievable with containers, with container-script procedure. But I don't think there are examples for that in Guix. Depending on why you want this, also note that there is least authority wrapper for security. Regards Rutherther
