libcontainer: fix InitArgs options func to set factory.InitPath#1888
libcontainer: fix InitArgs options func to set factory.InitPath#1888nickethier wants to merge 3 commits into
Conversation
Signed-off-by: Nick Ethier <nethier@hashicorp.com>
598d332 to
f0bfe87
Compare
Signed-off-by: Nick Ethier <nethier@hashicorp.com>
Signed-off-by: Nick Ethier <nethier@hashicorp.com>
|
I don't think we should be changing the InitPath to something other than /proc/self/exe. How else would runc syncronise containerisation of the init process without this unless you provide another binary that can syncronize in the same way? From my reading of runc's code the flow looks like:
I think the intention of The syncronisation dance I mentioned is document here in beautiful ASCII art: https://github.com/opencontainers/runc/blob/master/libcontainer/sync.go |
|
@BooleanCat Thanks for the reply! Under most circumstances I would agree that changing to anything other than Concrete example: |
Use a custom initializer that enables us to use upstream runc, rather than our fork. Until opencontainers/runc#1888 is merged.
Use a custom initializer that enables us to use upstream runc, rather than our fork. Until opencontainers/runc#1888 is merged.
Greetings!
From the godocs it looks like
InitArgsshould be setting the full path and args for the init process:This isn't the case so here is a PR to fix that + a unit test.
Thanks!
-Nick