README: Destroy container before fatal
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
392a659733
commit
468428fe3d
|
@ -186,8 +186,8 @@ process := &libcontainer.Process{
|
|||
|
||||
err := container.Start(process)
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
container.Destroy()
|
||||
logrus.Fatal(err)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue