Support the new --empty-ns flags in RunC for checkpoint/restore.
Signed-off-by: Ross Boucher <rboucher@gmail.com>
This commit is contained in:
parent
8040df4e89
commit
a135e1093d
7 changed files with 188 additions and 162 deletions
|
@ -369,6 +369,9 @@ func (c *container) Checkpoint(cpt Checkpoint, checkpointDir string) error {
|
|||
if cpt.UnixSockets {
|
||||
add("--ext-unix-sk")
|
||||
}
|
||||
for _, ns := range cpt.EmptyNS {
|
||||
add("--empty-ns", ns)
|
||||
}
|
||||
add(c.id)
|
||||
out, err := exec.Command(c.runtime, args...).CombinedOutput()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue