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

Unknown flag --registry-certificate jfrog.local.com #1

Open
nishit93-hub opened this issue Jan 28, 2022 · 1 comment
Open

Unknown flag --registry-certificate jfrog.local.com #1

nishit93-hub opened this issue Jan 28, 2022 · 1 comment

Comments

@nishit93-hub
Copy link

@vfarcic Hi, I want to pass a certificate for a registry using kaniko. But it gives an error

    container:
      image: gcr.io/kaniko-project/executor:latest
      command: [/kaniko/executor]
      args:
        - "--context=dir:///application-dockerfile"
        - "--destination=jfrog.local.com/springboot/maven:5.0"
        - "--registry-certificate jfrog.local.com=/kaniko/.docker/certs/ca-certificates.crt"

The error is Unknown flag --registry-certificate jfrog.local.com.

@vfarcic
Copy link
Owner

vfarcic commented Jan 30, 2022

Put = between the arg and the value. It should be something like --registry-certificate=jfrog.local.com=/kaniko/.docker/certs/ca-certificates.crt

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

No branches or pull requests

2 participants