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

How to authenticate via docker json file ? #84

Closed
Proger666 opened this issue Feb 3, 2022 · 2 comments · Fixed by #291
Closed

How to authenticate via docker json file ? #84

Proger666 opened this issue Feb 3, 2022 · 2 comments · Fixed by #291

Comments

@Proger666
Copy link

Proger666 commented Feb 3, 2022

Hello.
trying to authenticate according to the example but got:
/kaniko/.docker/config.json: read /kaniko/.docker/config.json: is a directory
How to push dockerconfig for auth to the runner so kaniko can mount it ?

@int128
Copy link
Owner

int128 commented Feb 5, 2022

This action passes ~/.docker/config.json to the kaniko container.
Please check if it exists.

@Jerome1337
Copy link
Contributor

Jerome1337 commented Oct 12, 2022

Is have the same issue, the config.json is existing but when docker mount it, it becomes a folder (or is failing 🤔).

Here is a cat of the content before kaniko action is started

{
	"auths": {
		"europe-docker.pkg.dev": {
			"auth": "***"
		}
	}
}

Then during the build I have this error

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 "europe-docker.pkg.dev/***/docker/***": resolving authorization for europe-docker.pkg.dev failed: /kaniko/.docker/config.json: read /kaniko/.docker/config.json: is a directory

The volume looks good: -v /home/runner/.docker/config.json:/kaniko/.docker/config.json:ro

Every seems fine but I still have this issue.

FYI, I'm login into GAR using the docker/login-action@v2 action and login is successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants