mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #190 from dotcloud/189-broken_env_tty_mode-fix
#189 Fix the env in TTY mode
This commit is contained in:
commit
e260e80814
1 changed files with 3 additions and 2 deletions
|
@ -258,8 +258,9 @@ func (container *Container) Start() error {
|
|||
|
||||
var err error
|
||||
if container.Config.Tty {
|
||||
container.cmd.Env = append(container.Config.Env,
|
||||
"TERM=xterm",
|
||||
container.cmd.Env = append(
|
||||
[]string{"TERM=xterm"},
|
||||
container.cmd.Env...,
|
||||
)
|
||||
err = container.startPty()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue