Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 5871b6f

Browse files
committed
Allow EOF errors to pass silently on ContainerStart.
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
1 parent 97a5347 commit 5871b6f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pkg/standalone/containers.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"context"
77
"errors"
88
"fmt"
9+
"io"
910
"os"
1011
"strconv"
1112
"strings"
@@ -192,7 +193,11 @@ func waitForContainerToStart(ctx context.Context, dockerClient client.ContainerA
192193
// until the polling time out - unfortunately we can't make the 404
193194
// acceptance window any smaller than that because the CUDA-based
194195
// containers are large and can take time to create).
195-
if !errdefs.IsNotFound(err) {
196+
//
197+
// For some reason, this error case can also manifest as an EOF on the
198+
// request (I'm not sure where this arises in the Moby server), so we'll
199+
// let that pass silently too.
200+
if !(errdefs.IsNotFound(err) || errors.Is(err, io.EOF)) {
196201
return err
197202
}
198203
if i > 1 {

0 commit comments

Comments
 (0)