set TERM=xterm on execs to work around docker issue 9299

This commit is contained in:
Paul Bellamy
2016-02-17 13:46:41 +00:00
parent 611f933f4d
commit e49d1a721c

View File

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