Put tmp direcories under ~/.moby

Docker4Mac won't bind mount default tmp dir into containers

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-06-02 22:36:21 +01:00
parent 294389aef9
commit 5b73f53dcf
3 changed files with 10 additions and 11 deletions

View File

@@ -97,6 +97,11 @@ func main() {
log.Fatalf("Could not create config directory [%s]: %v", MobyDir, err)
}
err = os.MkdirAll(filepath.Join(MobyDir, "tmp"), 0755)
if err != nil {
log.Fatalf("Could not create config tmp directory [%s]: %v", filepath.Join(MobyDir, "tmp"), err)
}
switch args[0] {
case "build":
build(args[1:])