Store the checkpoint and restore logs in the same directory as the (#253)
checkpoint image itself. Signed-off-by: Ross Boucher <rboucher@gmail.com>
This commit is contained in:
parent
16a8dfe6a8
commit
cf554d59dd
2 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,8 @@ func (p *process) start() error {
|
||||||
)
|
)
|
||||||
} else if p.checkpoint != nil {
|
} else if p.checkpoint != nil {
|
||||||
args = append(args, "restore",
|
args = append(args, "restore",
|
||||||
"--image-path", filepath.Join(p.checkpointPath),
|
"--image-path", p.checkpointPath,
|
||||||
|
"--work-path", filepath.Join(p.checkpointPath, "criu.work", "restore-"+time.Now().Format(time.RFC3339)),
|
||||||
)
|
)
|
||||||
add := func(flags ...string) {
|
add := func(flags ...string) {
|
||||||
args = append(args, flags...)
|
args = append(args, flags...)
|
||||||
|
|
|
@ -351,6 +351,7 @@ func (c *container) Checkpoint(cpt Checkpoint, checkpointDir string) error {
|
||||||
args := []string{
|
args := []string{
|
||||||
"checkpoint",
|
"checkpoint",
|
||||||
"--image-path", path,
|
"--image-path", path,
|
||||||
|
"--work-path", filepath.Join(path, "criu.work"),
|
||||||
}
|
}
|
||||||
add := func(flags ...string) {
|
add := func(flags ...string) {
|
||||||
args = append(args, flags...)
|
args = append(args, flags...)
|
||||||
|
|
Loading…
Reference in a new issue