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
container_exec: Fix terminal setting for exec #1443
Conversation
We were incorrectly inheriting tty true from main container. Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
@@ -766,6 +766,9 @@ func PrepareProcessExec(c *Container, cmd []string, tty bool) (*os.File, error) | |||
|
|||
pspec := c.Spec().Process | |||
pspec.Args = cmd | |||
// We need to default this to false else it will inherit terminal as true | |||
// from the container. | |||
pspec.Terminal = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmm that's why we changed it in the first place to inherit, do we always want this to be false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can let the caller decide if they want to inherit and pass it down explicity as true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alrighty, figured, thanks!
LGTM, just a question |
LGTM |
/test all |
/test e2e_fedora |
2 similar comments
/test e2e_fedora |
/test e2e_fedora |
We were incorrectly inheriting tty true from main container.
@runcom @rhatdan PTAL
Closes #1433
Signed-off-by: Mrunal Patel mrunalp@gmail.com