Merge pull request #852 from hqhq/fix_libcontainer_readme
README: Destroy container before fatal
This commit is contained in:
commit
9dcacfb835
|
@ -186,8 +186,8 @@ process := &libcontainer.Process{
|
||||||
|
|
||||||
err := container.Start(process)
|
err := container.Start(process)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Fatal(err)
|
|
||||||
container.Destroy()
|
container.Destroy()
|
||||||
|
logrus.Fatal(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue