container_create: Add TERM=xterm when tty=true

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-09-06 16:38:01 +02:00
parent cde40ad5ca
commit b7b57e8731
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -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 {