We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb76c93 commit 786c9adCopy full SHA for 786c9ad
1 file changed
daemon/health.go
@@ -160,7 +160,6 @@ func (p *cmdProbe) run(ctx context.Context, d *Daemon, cntr *container.Container
160
info.Lock()
161
defer info.Unlock()
162
if info.ExitCode == nil {
163
- info.Unlock()
164
return 0, fmt.Errorf("healthcheck for container %s has no exit code", cntr.ID)
165
}
166
return *info.ExitCode, nil
0 commit comments