mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove panic in lxc driver.
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack)
This commit is contained in:
parent
8228e50581
commit
7c06d5e34e
1 changed files with 2 additions and 1 deletions
|
@ -279,7 +279,8 @@ func (i *info) IsRunning() bool {
|
||||||
|
|
||||||
output, err := i.driver.getInfo(i.ID)
|
output, err := i.driver.getInfo(i.ID)
|
||||||
if err != nil {
|
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") {
|
if strings.Contains(string(output), "RUNNING") {
|
||||||
running = true
|
running = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue