We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7afda4c + 133279f commit 7cc801dCopy full SHA for 7cc801d
1 file changed
cli/command/cli.go
@@ -602,8 +602,10 @@ func NewDockerCli(ops ...CLIOption) (*DockerCli, error) {
602
ops = append(defaultOps, ops...)
603
604
cli := &DockerCli{baseCtx: context.Background()}
605
- if err := cli.Apply(ops...); err != nil {
606
- return nil, err
+ for _, op := range ops {
+ if err := op(cli); err != nil {
607
+ return nil, err
608
+ }
609
}
610
return cli, nil
611
0 commit comments