[artix-general] migrating from arch and some related questions...

Javier je-vv at e.email
Sat Mar 21 15:43:10 CET 2020


On 3/21/20 8:14 AM, Javier via artix-general wrote:
> On 3/19/20 3:47 PM, Javier via artix-general wrote:
>> On 3/19/20 9:55 AM, Dudemanguy via artix-general wrote:
>>>> A recent concern I have is cgroups.  Would there be a limitation when using s6 as the init system for docker or other containers?
>>>
>>> I'm not familiar with docker myself, but I don't think the s6-linux-init package that we ship with artix will work with docker by default. I believe, after installing the package, you would probably need to run the s6-linux-init-maker (this is the part of the program that actually makes init for s6; in Artix we execute this in the install script), but with the -C option for containers. Of course, replace the newly generated binaries with the old ones.
>>
>> I see, most probably the init scripts need to be generated by hand, I interpret...  The "-C" option seems required only if s6 is used within the container, not the host, or that's what I understood from a quick look at [6].  The docker containers used in the office have ubuntu guests, and most probably to generate the init scripts on the host, "-C" might not be required.
>>
>> But besides the init scripts, I understand docker heavily depends on cgroups, as well as other containers, so my concern was more on the line of how well containers, and in particular docker, work when the init system is s6, given it doesn't add cgroups support, as systemd and openrc do (and as I originally mentioned, I was not sure how well openrc supports cgroups and containers, given it supports something already deemed obsolete, but on another answer to my original post, it seems it does work on openrc).  It would be nice to know if someone runs docker containers under a s6 init system.  Of course I might end up finding my own, but perhaps someone already knows how well or bad is trying to do so...
> 
> 
> Ups, I think I totally misunderstood Dudemanguy's comment.  I'm not that familiar with s6, and after re-reading several docs (I'm planning to start migrating/fresh installing to s6 artix, haven't decided yet the best route, not necessarily the fastest), I believe he was indicating the init could be changed to support cgroups somehow, by rebuilding the s6-linux-init with s6-linux-init-maker.  Perhaps by taking a look at what openrc does.  But that's something I'm even less familiar with, :)  But it might be the way to go, if the FDO change about PID 1 [5] holds.  I'm no sure how compliant actually openrc would be, given it follows something FDO considers outdated...
> 
> Oh well, we'll see later if one can load docker images under s6 artix...
> 
> 

Perhaps integrating cgroups-mount [7] into s6-linux-init, and maybe that's what was originally suggested...  When getting there will for sure ask for help.  There's a AUR package for it [8], but it's not meant for the init, but rather as a daemon for sysvinit, but it can be used for the s6-linux-init sources and rebuild...

Thanks !

-- 
Javier

[7]  https://github.com/mdevaev/cgroupfs-mount-rc
[8]  https://aur.archlinux.org/packages/cgroupfs-mount-rc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.artixlinux.org/archives/artix-general/attachments/20200321/63c368db/attachment.sig>


More information about the artix-general mailing list