<p>I'm using kaniko image to push an image to a private docker register, and it gives me <code>No matching credentials were found, falling back on anonymous</code>.</p>

<pre><code>docker run  -v $PWD:/workspace \
        -v /root/.docker/config.json:/kaniko/config.json \
        --env DOCKER_CONFIG=/kaniko \
        gcr.io/kaniko-project/executor:latest \
        -d gitlab.xxx.org/xxx/xxx
</code></pre>

<p>the config.json file is valid as I verified with docker login
I aslo follow <a href="https://docs.gitlab.com/ee/ci/docker/using_kaniko.html" rel="nofollow noreferrer">kaniko gitlab</a> to run kaniko in k8s, and get the same error</p>

biao
<p>Fixed, It's just about image download. I'm using it in an internal network. It's not about pushing images to registery.</p>
