container_create: Add TERM=xterm when tty=true
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
cde40ad5ca
commit
b7b57e8731
1 changed files with 3 additions and 0 deletions
|
@ -454,6 +454,9 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
||||||
}).Debugf("setting container's log_path")
|
}).Debugf("setting container's log_path")
|
||||||
|
|
||||||
specgen.SetProcessTerminal(containerConfig.Tty)
|
specgen.SetProcessTerminal(containerConfig.Tty)
|
||||||
|
if containerConfig.Tty {
|
||||||
|
specgen.AddProcessEnv("TERM", "xterm")
|
||||||
|
}
|
||||||
|
|
||||||
linux := containerConfig.GetLinux()
|
linux := containerConfig.GetLinux()
|
||||||
if linux != nil {
|
if linux != nil {
|
||||||
|
|
Loading…
Reference in a new issue