mirror of https://github.com/docker/compose.git
Take `platform` in account on pulling the images
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
91b39d0772
commit
ba4a9980e2
|
@ -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{
|
stream, err := s.apiClient.ImagePull(ctx, service.Image, moby.ImagePullOptions{
|
||||||
RegistryAuth: base64.URLEncoding.EncodeToString(buf),
|
RegistryAuth: base64.URLEncoding.EncodeToString(buf),
|
||||||
|
Platform: service.Platform,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.Event(progress.Event{
|
w.Event(progress.Event{
|
||||||
|
|
Loading…
Reference in New Issue