mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
commit
5f0ea4d016
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,6 @@ func (daemon *Daemon) CheckpointCreate(name string, config types.CheckpointCreat
|
|||
}
|
||||
|
||||
checkpointDir, err := getCheckpointDir(config.CheckpointDir, config.CheckpointID, name, container.ID, container.CheckpointDir(), true)
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot checkpoint container %s: %s", name, err)
|
||||
}
|
||||
|
@ -105,6 +104,9 @@ func (daemon *Daemon) CheckpointList(name string, config types.CheckpointListOpt
|
|||
}
|
||||
|
||||
checkpointDir, err := getCheckpointDir(config.CheckpointDir, "", name, container.ID, container.CheckpointDir(), true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := os.MkdirAll(checkpointDir, 0755); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Reference in a new issue