mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
Pass non-nil PrivilegeFunc to ImagePull
This commit is contained in:
4
vendor/github.com/docker/libcompose/docker/image.go
generated
vendored
4
vendor/github.com/docker/libcompose/docker/image.go
generated
vendored
@@ -60,7 +60,9 @@ func pullImage(ctx context.Context, client client.APIClient, service *Service, i
|
||||
|
||||
timeoutsRemaining := 3
|
||||
for i := 0; i < 100; i++ {
|
||||
responseBody, err := client.ImagePull(ctx, options, nil)
|
||||
responseBody, err := client.ImagePull(ctx, options, func() (string, error) {
|
||||
return encodedAuth, nil
|
||||
})
|
||||
if err != nil {
|
||||
logrus.Errorf("Failed to pull image %s: %v", image, err)
|
||||
return err
|
||||
|
Reference in New Issue
Block a user