Merge pull request #125 from justincormack/tmpdir

Add a tmp directory for each container to be used as a mount point
This commit is contained in:
Justin Cormack 2017-07-24 17:19:32 +01:00 committed by GitHub
commit 2c4d567781

View File

@ -189,6 +189,16 @@ func ImageBundle(path string, image string, config []byte, tw tarWriter, trust b
if err != nil { if err != nil {
return err return err
} }
// add a tmp directory to be used as a mount point if needed
hdr = &tar.Header{
Name: path + "/" + "tmp",
Mode: 0755,
Typeflag: tar.TypeDir,
}
err = tw.WriteHeader(hdr)
if err != nil {
return err
}
return nil return nil
} }