mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
Merge pull request #26162 from tonistiigi/print-stack-on-leave
Print stacktrace on failing to leave cluster Upstream-commit: 67510c75e974f437e2a13c3b169371d7d56eaf40 Component: engine
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
||||
"github.com/docker/docker/errors"
|
||||
"github.com/docker/docker/opts"
|
||||
"github.com/docker/docker/pkg/ioutils"
|
||||
"github.com/docker/docker/pkg/signal"
|
||||
"github.com/docker/docker/runconfig"
|
||||
apitypes "github.com/docker/engine-api/types"
|
||||
"github.com/docker/engine-api/types/filters"
|
||||
@@ -560,6 +561,8 @@ func (c *Cluster) Leave(force bool) error {
|
||||
return fmt.Errorf(msg)
|
||||
}
|
||||
if err := c.stopNode(); err != nil {
|
||||
logrus.Errorf("failed to shut down cluster node: %v", err)
|
||||
signal.DumpStacks("")
|
||||
c.Unlock()
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user