Explorar o código

Take `platform` in account on pulling the images

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza %!s(int64=4) %!d(string=hai) anos
pai
achega
ba4a9980e2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      local/compose/pull.go

+ 1 - 0
local/compose/pull.go

@@ -96,6 +96,7 @@ func (s *composeService) Pull(ctx context.Context, project *types.Project) error
 
 			stream, err := s.apiClient.ImagePull(ctx, service.Image, moby.ImagePullOptions{
 				RegistryAuth: base64.URLEncoding.EncodeToString(buf),
+				Platform:     service.Platform,
 			})
 			if err != nil {
 				w.Event(progress.Event{