mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Print stacktrace on failing to leave cluster
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
73614f9f1e
commit
166d24e464
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ import (
|
||||||
"github.com/docker/docker/errors"
|
"github.com/docker/docker/errors"
|
||||||
"github.com/docker/docker/opts"
|
"github.com/docker/docker/opts"
|
||||||
"github.com/docker/docker/pkg/ioutils"
|
"github.com/docker/docker/pkg/ioutils"
|
||||||
|
"github.com/docker/docker/pkg/signal"
|
||||||
"github.com/docker/docker/runconfig"
|
"github.com/docker/docker/runconfig"
|
||||||
apitypes "github.com/docker/engine-api/types"
|
apitypes "github.com/docker/engine-api/types"
|
||||||
"github.com/docker/engine-api/types/filters"
|
"github.com/docker/engine-api/types/filters"
|
||||||
|
@ -560,6 +561,8 @@ func (c *Cluster) Leave(force bool) error {
|
||||||
return fmt.Errorf(msg)
|
return fmt.Errorf(msg)
|
||||||
}
|
}
|
||||||
if err := c.stopNode(); err != nil {
|
if err := c.stopNode(); err != nil {
|
||||||
|
logrus.Errorf("failed to shut down cluster node: %v", err)
|
||||||
|
signal.DumpStacks("")
|
||||||
c.Unlock()
|
c.Unlock()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue