@@ -116,7 +116,7 @@ func (s *composeService) pull(ctx context.Context, project *types.Project, opts
116116
117117 idx := i
118118 eg .Go (func () error {
119- _ , err := s .pullServiceImage (ctx , service , s . configFile (), w , opts .Quiet , project .Environment ["DOCKER_DEFAULT_PLATFORM" ])
119+ _ , err := s .pullServiceImage (ctx , service , w , opts .Quiet , project .Environment ["DOCKER_DEFAULT_PLATFORM" ])
120120 if err != nil {
121121 pullErrors [idx ] = err
122122 if service .Build != nil {
@@ -177,9 +177,7 @@ func getUnwrappedErrorMessage(err error) string {
177177 return err .Error ()
178178}
179179
180- func (s * composeService ) pullServiceImage (ctx context.Context , service types.ServiceConfig ,
181- configFile driver.Auth , w progress.Writer , quietPull bool , defaultPlatform string ,
182- ) (string , error ) {
180+ func (s * composeService ) pullServiceImage (ctx context.Context , service types.ServiceConfig , w progress.Writer , quietPull bool , defaultPlatform string ) (string , error ) {
183181 w .Event (progress.Event {
184182 ID : service .Name ,
185183 Status : progress .Working ,
@@ -190,7 +188,7 @@ func (s *composeService) pullServiceImage(ctx context.Context, service types.Ser
190188 return "" , err
191189 }
192190
193- encodedAuth , err := encodedAuth (ref , configFile )
191+ encodedAuth , err := encodedAuth (ref , s . configFile () )
194192 if err != nil {
195193 return "" , err
196194 }
@@ -330,7 +328,7 @@ func (s *composeService) pullRequiredImages(ctx context.Context, project *types.
330328 var mutex sync.Mutex
331329 for name , service := range needPull {
332330 eg .Go (func () error {
333- id , err := s .pullServiceImage (ctx , service , s . configFile (), w , quietPull , project .Environment ["DOCKER_DEFAULT_PLATFORM" ])
331+ id , err := s .pullServiceImage (ctx , service , w , quietPull , project .Environment ["DOCKER_DEFAULT_PLATFORM" ])
334332 mutex .Lock ()
335333 defer mutex .Unlock ()
336334 pulledImages [name ] = api.ImageSummary {
0 commit comments