1
0
Fork 0
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:
Louis Opter 2013-03-12 12:12:40 -07:00
parent 46dce5918a
commit b2de17bf2c

View file

@ -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> ")