MCPcopy Index your code
hub / github.com/cortexlabs/cortex / WrapDockerError

Function WrapDockerError

pkg/lib/docker/docker.go:123–133  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

121}
122
123func WrapDockerError(err error) error {
124 if dockerclient.IsErrConnectionFailed(err) {
125 return ErrorConnectToDockerDaemon()
126 }
127
128 if strings.Contains(strings.ToLower(err.Error()), "permission denied") {
129 return ErrorDockerPermissions(err)
130 }
131
132 return errors.WithStack(err)
133}
134
135type PullVerbosity int
136

Callers 8

runManagerFunction · 0.92
GetDockerClientFunction · 0.85
PullImageFunction · 0.85
StreamDockerLogsFunction · 0.85
StreamDockerLogsFnFunction · 0.85
CopyToContainerFunction · 0.85
CopyFromContainerFunction · 0.85
CheckImageExistsLocallyFunction · 0.85

Calls 4

WithStackFunction · 0.92
ErrorDockerPermissionsFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected