Skip to content

Should Terminal be in the process spec? #663

@crosbymichael

Description

@crosbymichael

We have had this for a while and I'm starting to question if this is the best place for this. Because of the console work and much of this has to be coordinated outside of the runtime and container I don't know if the spec is the right place to have this.

As an example, the shim with containerd, we have to create the socket and wait to get the pty master back from the runtime, the only way the shim would know if it is supposed to create this socket and wait is if:

a. the higher level pass down the information that you should get a console from the container
b. we read the spec

Reading the spec id kinda weird when the higher layers make the spec and give it to you, you open and unmarshal it to figureout this one field, then hand it off to the runtime.

It is more ideal if the higher levels just say, "hey i want a terminal with this container" and the shim can just launch runc with --tty or --console-socket and if this is specified then runc creates one, if not, it does not. This information is not split between the spec and higher levels.

What do you all think? Have you ran into this same issue implementing the spec or high level systems with runc or other runtimes?

@mlaventure wdyt?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions