mirror of https://github.com/docker/docs.git
Merge pull request #4013 from creack/remove_panic_lxc
Remove panic in lxc driver.
This commit is contained in:
commit
40ede286b8
|
@ -279,7 +279,8 @@ func (i *info) IsRunning() bool {
|
|||
|
||||
output, err := i.driver.getInfo(i.ID)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
utils.Errorf("Error getting info for lxc container %s: %s (%s)", i.ID, err, output)
|
||||
return false
|
||||
}
|
||||
if strings.Contains(string(output), "RUNNING") {
|
||||
running = true
|
||||
|
|
Loading…
Reference in New Issue