-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend template to accept namespace (pid) #434
Comments
Looking at the spec, we can later map the pid= to either a named namespace or check if it's an int and map to the namespace ID. https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#namespaces I'm in favour of the simple option, it matches the underlying runtime Docker .. which matches its underlying runtime containerd. |
@thebsdbox yep, I know that docker relays on what containerd can do that relays on what runc can do, the question is how much it is hidden in those layers and what do we want to support?
Do we want to act as a proxy and accept all the possible parameters? How it will be even possible or useful to use I know @jacobweinstock has an idea and @markyjackson-taulia will come up with a possible implementation. I personally don't have an idea about how it should be implemented but I would like to a clear and hard to get wrong feature. |
I lean toward using something like I think there are a few schools of thought here found in other projects. |
+1 |
@thebsdbox @jacobweinstock I think with At least |
This is a bit of a blocker on new actions we're wanting to write, has there been the opportunity to write anything so far? |
@thebsdbox I am starting this wrk today |
Awesome, I did a PoC today so I could carry on playing -> https://github.com/thebsdbox/tink/tree/pid feel free to pull anything from there that makes sense. I've never used |
This can be closed with #436 |
Hello
This morning I had some fun with @thebsdbox pairing on writing action to kexec inside a new shiny operating system.
The outcome is this action tinkerbell/actions#8 . It almost works. What is missed is the ability to attach the PID namespace of the host to the action itself.
We even streamed out work on Twitch and as you can see at the end of the video we validated that running the action locally with
docker run --pid=host
made the trick and kexec successfully.So we are almost there but we need to extend the template in a way that will allow passing the pid namespace.
There are at least two possible solutions.
So we can add the field
action.pid=string
to Template in this way we can pass that value to the Docker API.PRO: It is simple
BUT I prefer to go a little bit deeper and see what the OCI has to offer because ideally, I would like to be able to replace Docker with other things in the future and I am wondering
pid=<string>
will make it harder. If OCI sounds too low level at least having a look at contained...The text was updated successfully, but these errors were encountered: