MCPcopy Index your code
hub / github.com/docker/cli / main

Function main

cmd/docker/docker.go:42–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func main() {
43 err := dockerMain(context.Background())
44 if errors.As(err, &errCtxSignalTerminated{}) {
45 os.Exit(getExitCode(err))
46 }
47
48 if err != nil && !errdefs.IsCanceled(err) {
49 if err.Error() != "" {
50 _, _ = fmt.Fprintln(os.Stderr, err)
51 }
52 os.Exit(getExitCode(err))
53 }
54}
55
56func notifyContext(ctx context.Context, signals ...os.Signal) (context.Context, context.CancelFunc) {
57 ch := make(chan os.Signal, 1)

Callers

nothing calls this directly

Calls 3

dockerMainFunction · 0.85
getExitCodeFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…