mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
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:
commit
2c4d567781
@ -189,6 +189,16 @@ func ImageBundle(path string, image string, config []byte, tw tarWriter, trust b
|
||||
if err != nil {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user