mirror of
https://github.com/docker/docs.git
synced 2026-04-02 09:18:57 +07:00
Automatically remove the rcfile generated by docker -i from /tmp
This commit is contained in:
@@ -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> ")
|
||||
|
||||
Reference in New Issue
Block a user