{"id":"66edd70f07e04b1b","repo":"docker/cli","slug":"s-w-66edd7","errorCode":null,"errorMessage":"%s: %w","messagePattern":"(.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/stack/deploy_composefile.go","lineNumber":308,"sourceCode":"\t\t\t\tEncodedRegistryAuth: encodedAuth,\n\t\t\t\tQueryRegistry:       queryRegistry,\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"failed to create service %s: %w\", name, err)\n\t\t\t}\n\n\t\t\tserviceIDs = append(serviceIDs, response.ID)\n\t\t}\n\t}\n\n\treturn serviceIDs, nil\n}\n\nfunc waitOnServices(ctx context.Context, dockerCli command.Cli, serviceIDs []string, quiet bool) error {\n\tvar errs []error\n\tfor _, serviceID := range serviceIDs {\n\t\tif err := service.WaitOnService(ctx, dockerCli, serviceID, quiet); err != nil {\n\t\t\terrs = append(errs, fmt.Errorf(\"%s: %w\", serviceID, err))\n\t\t}\n\t}\n\treturn errors.Join(errs...)\n}\n","sourceCodeStart":290,"sourceCodeEnd":313,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/stack/deploy_composefile.go#L290-L313","documentation":"Error \"%s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/stack/deploy_composefile.go:308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}