From e49d1a721cb31bfe0ac197f81cb577f7595ebf2b Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Wed, 17 Feb 2016 13:46:41 +0000 Subject: [PATCH] set TERM=xterm on execs to work around docker issue 9299 --- probe/docker/controls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/docker/controls.go b/probe/docker/controls.go index 293bc36ee..357e3a094 100644 --- a/probe/docker/controls.go +++ b/probe/docker/controls.go @@ -99,7 +99,7 @@ func (r *registry) execContainer(containerID string, req xfer.Request) xfer.Resp AttachStdout: true, AttachStderr: true, Tty: true, - Cmd: []string{"/bin/sh"}, + Cmd: []string{"/bin/sh", "-c", "TERM=xterm exec /bin/sh"}, Container: containerID, }) if err != nil {