Replies: 17 comments
-
I'd look this over some.. particularly the console portions in the config docs..https://github.com/opencontainers/runtime-spec |
Beta Was this translation helpful? Give feedback.
-
@mikebrow |
Beta Was this translation helpful? Give feedback.
-
Is this doc helpful for you? https://github.com/opencontainers/runc/blob/master/docs/terminals.md#detached-new-terminal |
Beta Was this translation helpful? Give feedback.
-
@AkihiroSuda |
Beta Was this translation helpful? Give feedback.
-
(Background: @utam0k has been developing https://github.com/containers/youki) I'm unsure containerd is the right place regarding That being said, I don't know how other OCI runtimes (crun, runj, ...) maintain the compatibility with runc. As @utam0k mentioned, OCI Runtime spec doesn't cover the aspect. |
Beta Was this translation helpful? Give feedback.
-
@kzys
If it is close to the actual de facto standard, it may be more correct to describe it in oci spec, whether this is the best or not. However, the impact on podman may need to be considered.
As for youki which I develop there are many aspects to be understood by reading the runc code, including other developers. However, I couldn't imagine what to send or what
I probably shouldn't have created this issue here, so I'll leave it for a few days and close it if there are no comments. |
Beta Was this translation helpful? Give feedback.
-
The runtime spec doesn't really have much to say on this (or on some other things like the precise set of flags vs. positional arguments in the CLI). Effectively, runc ends up being the standard for portions of the spec that are undefined due to its popularity and status as the reference implementation. I wrote up a bit about the console socket here and would be happy to work together on something that's more clear. |
Beta Was this translation helpful? Give feedback.
-
Oh, I thought that the spec is only covering the JSON payload. It is having a section regarding the subcommands (found from Sam's notes). Ultimately, I think, we should revise the runtime spec to explain more about the flags and the positional arguments. The document currently has the note;
But why not? :) |
Beta Was this translation helpful? Give feedback.
-
I think @tianon might have some of the background, but my understanding is that there wasn't agreement on the command-line interfaces (parameters, arguments, inputs and outputs via STDIO, additional things like this |
Beta Was this translation helpful? Give feedback.
-
I think the historical "why not" is because at the time, we really wanted to avoid being too prescriptive on the specific UI / UX the various tools took, and felt like it was overstepping our role (if I'm recalling correctly -- I think there might be some ancient meeting recordings somewhere that could corroborate or contradict). There was definitely a lot of discussion around this for https://github.com/opencontainers/runtime-tools, which unfortunately didn't gather the same level of attention as the specification (or even the |
Beta Was this translation helpful? Give feedback.
-
Thanks @tianon and @samuelkarp. I think, it would be better to revisit the discussion and I'm fine driving that if we can agree about the direction.
Thoughts? |
Beta Was this translation helpful? Give feedback.
-
An interesting idea -- I wonder if I can convince some other folks (perhaps a little closer to the "fire" so to speak) to opine on that who I'm hoping would have more realistic opinions than mine; @giuseppe @crosbymichael @kolyshkin @cyphar ? 😇 🙏 |
Beta Was this translation helpful? Give feedback.
-
As a developer who implements a low-level container runtime, I feel that this opinion would be greatly appreciated if it were possible.
|
Beta Was this translation helpful? Give feedback.
-
personally I'd strip the CLI compatibility layer to the bare minimum and move the CLI flags to the OCI spec file itself, including |
Beta Was this translation helpful? Give feedback.
-
historical reference ... the now closed cli PR: opencontainers/runtime-spec#513 the PR bringing in the closed 513 cli in runtime tools: opencontainers/runtime-tools#321 This was supposed to be a "first" effort and after runc GA'd there would be a second effort. |
Beta Was this translation helpful? Give feedback.
-
Been so many years I forgot that we did merge the minimal cli doc over in runtime-tools |
Beta Was this translation helpful? Give feedback.
-
@kzys Thanks for helping me out with this issue, and as far as console-socket is concerned, I think it would be best to put it in config.json. |
Beta Was this translation helpful? Give feedback.
-
What is the problem you're trying to solve
Hi! I've always found containerd useful.
I'm building my own oci-container runtime that works with containerd, and I had a lot of trouble with
console-socket
. I ended up reading and understanding the code of runc, crun and containerd. Is there any documentation about this somewhere? If not I'd be happy to help.Describe the solution you'd like
If there is a document somewhere that summarizes the unique arguments to be passed to the oci container runtime, it is a good idea to describe them in that document.
Additional context
containerd/vendor/github.com/containerd/go-runc/console.go
Line 139 in 261c107
Beta Was this translation helpful? Give feedback.
All reactions