Skip to content

Docs feedback: GitLab Kaniko Instructions Don't Work

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Link the doc and describe what is wrong with it.

https://docs.gitlab.com/ee/ci/docker/using_kaniko.html

The documented instructions in the Using Kaniko page do not work. There are numerous posts on the internet about these issues. The instructions result in the following errors.

$ mkdir -p /kaniko/.docker $ echo "{"auths":{"{CI_REGISTRY}\":{\"auth\":\"(printf "%s:%s" "{CI_REGISTRY_USER}" "{CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')"}}}" > /kaniko/.docker/config.json $ /kaniko/executor --context "{CI_PROJECT_DIR}" --dockerfile "{CI_PROJECT_DIR}/Dockerfile" --destination "{CI_REGISTRY_IMAGE}:{CI_COMMIT_TAG}" 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 "git.weibeltech.com:5050/examples/kaniko:": creating push check transport for git.weibeltech.com:5050 failed: Get "https://git.weibeltech.com:5050/v2/": dial tcp 34.214.69.26:5050: i/o timeout Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit code 1

I have yet to identify a working solution to this problem to recommend resolution.

Issue observed with GitLab Community Edition 14.6.0. Leveraging latest debug kaniko container.

Edited by 🤖 GitLab Bot 🤖