mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Automatically remove the rcfile generated by docker -i from /tmp
This commit is contained in:
parent
46dce5918a
commit
b2de17bf2c
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ func InteractiveMode(scripts ...string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer os.Remove(rcfile.Name())
|
||||
io.WriteString(rcfile, "enable -n help\n")
|
||||
os.Setenv("PATH", tmp+":"+os.Getenv("PATH"))
|
||||
os.Setenv("PS1", "\\h docker> ")
|
||||
|
|
Loading…
Reference in a new issue