mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
Merge pull request #4013 from creack/remove_panic_lxc
Remove panic in lxc driver. Upstream-commit: 40ede286b820ec5723f2c5123dbafaf36649d406 Component: engine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user