UNCLASSIFIED - NO CUI

Skip to content

Can not register gitlab runner with gitlab with current permissions

When trying to use the ironbank docker image for gitlab-runner, we ran into a permission issue.

We were trying to use the image in docker on an EC2 to register with an instance of Gitlab (not a docker container, regular install of Gitlab on an EC2).

Within the docker image, we do not have permissions/root to download the CA certificate and configure it so the docker container can communicate with our Gitlab.

We found a temporary work around for this first issue, but the following issue we ran into during runner registration was not being able to configure the config.toml file because of permissions. This error is reached following the console inputs, gitlab-ci, token, executor, registration of the runner completes.

Following these steps, console prints: PANIC: open /home/gitlab-runner/.gitlab-runner/config.toml: permission denied The runner is subsequently unregistered.

Is there a way to achieve the needed permissions to download the CA and make the config file?

Edited by natashac
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information