AliyunContainerService/image-syncer

the auth info path is wrong

Closed this issue · 2 comments

config file:

{
    "auth": {
        "registry.hub.docker.com": {
            "username": "xxx",
            "password": "xxx"
        }
    },
    "images": {
        "quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1": "registry.hub.docker.com/deepmapcn/nginx-ingress-controller",
        "docker.io/envoyproxy/envoy:v1.12.0": "registry.hub.docker.com/deepmapcn/envoy",
        "gcr.io/google_containers/defaultbackend:1.4": "registry.hub.docker.com/deepmapcn/defaultbackend",
        "gcr.io/heptio-images/contour:v0.12.1": "registry.hub.docker.com/deepmapcn/contour",
        "k8s.gcr.io/kubernetes-dashboard-amd64:v1.10.1": "registry.hub.docker.com/deepmapcn/kubernetes-dashboard-amd64",
        "quay.io/pusher/oauth2_proxy:v3.2.0": "registry.hub.docker.com/deepmapcn/oauth2_proxy",
        "k8s.gcr.io/heapster-amd64:v1.5.4":"registry.hub.docker.com/deepmapcn/heapster-amd64",
        "k8s.gcr.io/heapster-influxdb-amd64:v1.5.2":"registry.hub.docker.com/deepmapcn/heapster-influxdb-amd64",
        "quay.io/coreos/kube-state-metrics:v1.5.0": "registry.hub.docker.com/deepmapcn/kube-state-metrics",
        "k8s.gcr.io/addon-resizer:1.8.3": "registry.hub.docker.com/deepmapcn/addon-resizer"
    }
}

result:

INFO[2020-03-03 13:01:39] Cannot find auth information for quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1, pull actions will be anonymous 
INFO[2020-03-03 13:01:39] Cannot find auth information for docker.io/envoyproxy/envoy:v1.12.0, pull actions will be anonymous 
INFO[2020-03-03 13:01:39] Cannot find auth information for gcr.io/heptio-images/contour:v0.12.1, pull actions will be anonymous 
INFO[2020-03-03 13:01:39] Find auth information for k8s.gcr.io/heapster-influxdb-amd64:v1.5.2, username: xxx 
INFO[2020-03-03 13:01:39] Cannot find auth information for quay.io/pusher/oauth2_proxy:v3.2.0, pull actions will be anonymous 
INFO[2020-03-03 13:01:40] Find auth information for registry.hub.docker.com/deepmapcn/contour, username: xxx 
INFO[2020-03-03 13:01:40] Generate a task for gcr.io/heptio-images/contour:v0.12.1 to registry.hub.docker.com/deepmapcn/contour 
INFO[2020-03-03 13:01:40] Find auth information for k8s.gcr.io/addon-resizer:1.8.3, username: xxx 

k8s.gcr.io is no namespace and no auth.

Read the README file, and you will get what you want.

For your case:

{
    "auth": {
        "registry.hub.docker.com": {
            "username": "xxx",
            "password": "xxx"
        },
        "quay.io":{...},
        "k8s.gcr.io":{...}
        ...
    },
}

This issue will be closed, if you still have problems about this, just reopen it.