Kaniko: Kaniko + Nexus

Created on 17 Dec 2019  路  3Comments  路  Source: GoogleContainerTools/kaniko

Hello all,

Is there a way to use kaniko + nexus private registry?

I tried to use a config.json without success.

Thanks!

arecaching kinquestion prioritawaiting_evidence

Most helpful comment

Hey @danilorsilva thank you for your question.

Looking into using nexus private registry docs,
you need to set up auth like this.
https://blog.sonatype.com/using-nexus-3-as-your-repository-part-3-docker-images

 ~/.docker/config.json:

{
    "auths": {
        "your-repo:8082": {
            "auth": "YWRtaW46YWRtaW4xMjM="
        },
        "your-repo:8083": {
            "auth": "YWRtaW46YWRtaW4xMjM="
        }
}

Can you follow the instructions here
https://github.com/GoogleContainerTools/kaniko#pushing-to-docker-hub
to create a /kaniko/.docker/config.json and try?

All 3 comments

Hey @danilorsilva thank you for your question.

Looking into using nexus private registry docs,
you need to set up auth like this.
https://blog.sonatype.com/using-nexus-3-as-your-repository-part-3-docker-images

 ~/.docker/config.json:

{
    "auths": {
        "your-repo:8082": {
            "auth": "YWRtaW46YWRtaW4xMjM="
        },
        "your-repo:8083": {
            "auth": "YWRtaW46YWRtaW4xMjM="
        }
}

Can you follow the instructions here
https://github.com/GoogleContainerTools/kaniko#pushing-to-docker-hub
to create a /kaniko/.docker/config.json and try?

@tejal29 We have a Nexus repository, and it's working with this setting.
@danilorsilva Make sure the authenticated user has the necessary permissions.

Thanks!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

astefanutti picture astefanutti  路  3Comments

ErikWegner picture ErikWegner  路  4Comments

nartamonov picture nartamonov  路  4Comments

fkorotkov picture fkorotkov  路  3Comments

r2d4 picture r2d4  路  5Comments