Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 19, 2016

Conversation

paulbellamy
Copy link
Contributor

Fixes #759

docker run -t ... injects TERM=xterm into the container, but docker exec -t ... doesn't. We can inject it ourselves via env to work around this issue.

@@ -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{"/usr/bin/env", "TERM=xterm", "/bin/sh", "-l"},

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@2opremio
Copy link
Contributor

LGTM

paulbellamy added a commit that referenced this pull request Feb 19, 2016
set TERM=xterm on execs to work around docker issue 9299
@paulbellamy paulbellamy merged commit 38653c4 into master Feb 19, 2016
@paulbellamy paulbellamy deleted the 759-term-env-var branch February 19, 2016 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants