We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2beead commit 72fc99dCopy full SHA for 72fc99d
pkg/docker/errors.go
@@ -51,6 +51,7 @@ func isMissingDeviceDriverError(err error) bool {
51
strings.Contains(msg, "nvidia-container-cli: initialization error")
52
}
53
54
+// isNetworkError checks if the error is a network error. This is janky and intended for use in tests only
55
func isNetworkError(err error) bool {
56
// for both CLI and API clients, network errors are wrapped and lose the net.Error interface
57
// CLI client: wrapped by exec.Command as exec.ExitError
@@ -65,6 +66,7 @@ func isNetworkError(err error) bool {
65
66
"EOF",
67
"no route to host",
68
"network is unreachable",
69
+ "server closed",
70
71
72
for _, errStr := range networkErrorStrings {
0 commit comments