Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Error #1005

Open
vrkshetty opened this issue Jan 28, 2020 · 1 comment
Open

Authentication Error #1005

vrkshetty opened this issue Jan 28, 2020 · 1 comment
Labels
area/documentation For all bugs related to documentation kind/question Further information is requested priority/awaiting_evidence waiting on user's input before we can close of assign priority

Comments

@vrkshetty
Copy link

vrkshetty commented Jan 28, 2020

Actual behavior
A clear and concise description of what the bug is.
I am trying to push docker hub unable to authenticate
I have tried various way of creating secret , confmap from config.json extracted cat ~/.docker/config.json

"error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for"

Expected behavior
A clear and concise description of what you expected to happen.

May be little how to guide on how to configure for Dockerhub and pod spec would be nice
To Reproduce
Steps to reproduce the behavior:

    containers:
      - name: kaniko
        image: gcr.io/kaniko-project/executor:debug
        imagePullPolicy: Always
        command:
        - /busybox/cat
        tty: true
        volumeMounts:
          - name: docker-config
            mountPath: /kaniko/.docker/
          - name: kaniko-secret
            mountPath: /secret
    volumes:
      - name: docker-config
        configMap:
            name: docker-config3
      - name: kaniko-secret
        secret:
          secretName: kaniko-secret
  1. ...
  2. ...

Additional Information

  • Dockerfile
    Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
  • Build Context
    Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
  • Kaniko Image (fully qualified with digest)

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@tejal29 tejal29 self-assigned this Jan 29, 2020
@tejal29 tejal29 added kind/question Further information is requested area/documentation For all bugs related to documentation labels Jan 29, 2020
@tejal29
Copy link
Member

tejal29 commented Jan 30, 2020

Thanks @vrkshetty for this issue.

What does kaniko-secret or docker-config config map look like?

Basically, Kaniko expects a file in /kaniko/.docker/config.json as

{
	"auths": {
		"https://index.docker.io/v1/": {
			"auth": "xxxxxxxxxxxxxxx"
		}
	}
}

Can you try these steps and let us know.

  1. create a config.json as mentioned here
  2. Create a config map
kubectl create configmap docker-config --from-file=config.json
  1. Run kubectl describe configmaps docker-config should give you the contents of config.json
    4 finally volume mount the configmap docker-config at /kaniko/.docker like you have done.

Let me know if that fixes your issue.

@tejal29 tejal29 added the priority/awaiting_evidence waiting on user's input before we can close of assign priority label Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation For all bugs related to documentation kind/question Further information is requested priority/awaiting_evidence waiting on user's input before we can close of assign priority
Projects
None yet
Development

No branches or pull requests

2 participants