(ctx context.Context)
| 80 | } |
| 81 | |
| 82 | func dockerMain(ctx context.Context) error { |
| 83 | ctx, cancelNotify := notifyContext(ctx, platformsignals.TerminationSignals...) |
| 84 | defer cancelNotify() |
| 85 | |
| 86 | dockerCli, err := command.NewDockerCli(command.WithBaseContext(ctx)) |
| 87 | if err != nil { |
| 88 | return err |
| 89 | } |
| 90 | logrus.SetOutput(dockerCli.Err()) |
| 91 | otel.SetErrorHandler(debug.OTELErrorHandler) |
| 92 | |
| 93 | return runDocker(ctx, dockerCli) |
| 94 | } |
| 95 | |
| 96 | // getExitCode returns the exit-code to use for the given error. |
| 97 | // If err is a [cli.StatusError] and has a StatusCode set, it uses the |
no test coverage detected
searching dependent graphs…