From b7b57e873161a43390030a863c4a392a5588f89e Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 6 Sep 2017 16:38:01 +0200 Subject: [PATCH] container_create: Add TERM=xterm when tty=true Signed-off-by: Antonio Murdaca --- server/container_create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/container_create.go b/server/container_create.go index 2e9de16f..f1393935 100644 --- a/server/container_create.go +++ b/server/container_create.go @@ -454,6 +454,9 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string, }).Debugf("setting container's log_path") specgen.SetProcessTerminal(containerConfig.Tty) + if containerConfig.Tty { + specgen.AddProcessEnv("TERM", "xterm") + } linux := containerConfig.GetLinux() if linux != nil {