diff --git a/libcontainerd/remote_unix.go b/libcontainerd/remote_unix.go index abdb662c9f..54550595ad 100644 --- a/libcontainerd/remote_unix.go +++ b/libcontainerd/remote_unix.go @@ -154,7 +154,7 @@ func (r *remote) handleConnectionChange() { logrus.Debugf("libcontainerd: containerd health check returned error: %v", err) if r.daemonPid != -1 { - if strings.Contains(err.Error(), "is closing") { + if r.closeManually { // Well, we asked for it to stop, just return return }