mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 19:28:09 +00:00
Add a tmp directory for each container to be used as a mount point
This is to clean up how we do writeable containers in LinuxKit. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
a261a33812
commit
4720490c92
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user