Skip to content

Commit

Permalink
Merge pull request #11656 from johngmyers/docker-io
Browse files Browse the repository at this point in the history
Fix copying of images from docker.io
  • Loading branch information
k8s-ci-robot authored Jun 6, 2021
2 parents 8c2d84e + b6f3da6 commit 9f53dc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upup/pkg/fi/assettasks/docker_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package assettasks
import (
"context"
"fmt"
"strings"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"
Expand Down Expand Up @@ -60,6 +61,7 @@ func newDockerAPI() (*dockerAPI, error) {

// findImage does a `docker images` via the API, and finds the specified image
func (d *dockerAPI) findImage(name string) (*types.ImageSummary, error) {
name = strings.TrimPrefix(name, "docker.io/")
klog.V(4).Infof("docker query for image %q", name)
filter := filters.NewArgs(filters.KeyValuePair{Key: "reference", Value: name})
options := types.ImageListOptions{
Expand Down

0 comments on commit 9f53dc1

Please sign in to comment.