ctr: Properly delete snapshot if run is called with --rm
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
6574055dec
commit
5a02ae929c
@ -111,7 +111,7 @@ var runCommand = cli.Command{
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if context.Bool("rm") {
|
if context.Bool("rm") {
|
||||||
defer container.Delete(ctx)
|
defer container.Delete(ctx, containerd.WithRootFSDeletion)
|
||||||
}
|
}
|
||||||
task, err := newTask(ctx, container, checkpointIndex, tty)
|
task, err := newTask(ctx, container, checkpointIndex, tty)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user