Skip to content

Commit 436d75c

Browse files
authored
fix #1902 bug with retryDockerStatus (#1903)
1 parent 08f0c23 commit 436d75c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func retryDockerStatus() info.DockerStatus {
242242
for {
243243
ctx, _ := context.WithTimeout(context.Background(), startupTimeout)
244244
dockerStatus, err := docker.StatusWithContext(ctx)
245-
if err != nil {
245+
if err == nil {
246246
return dockerStatus
247247
}
248248

0 commit comments

Comments
 (0)