mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
Create tmp dir in case required
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
ad2fda5769
commit
3389f89c44
@ -10,6 +10,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -145,6 +146,11 @@ func Build(m Moby, w io.Writer, pull bool, tp string) error {
|
|||||||
MobyDir = defaultMobyConfigDir()
|
MobyDir = defaultMobyConfigDir()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// create tmp dir in case needed
|
||||||
|
if err := os.MkdirAll(filepath.Join(MobyDir, "tmp"), 0755); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
iw := tar.NewWriter(w)
|
iw := tar.NewWriter(w)
|
||||||
|
|
||||||
// add additions
|
// add additions
|
||||||
|
Loading…
Reference in New Issue
Block a user