Skip to content

Latest gitlab-runner image doesn't have the user `gitlab-runner`

The latest image https://hub.docker.com/layers/gitlab/gitlab-runner/latest/images/sha256-0d046fad44493edfc28a2e89a7142bf7bd9e42ba38725273abd6825b3fd651dd

No longer has the user gitlab-runner in /etc/passwd The ubuntu-v17.7.1 image does have that user.

We are seeing an error in our CI: https://github.com/python-gitlab/python-gitlab/issues/3091

Running with gitlab-runner 17.8.1 (a1fca00e) on python-gitlab-runner t1_p_wyG, system ID: r_6gTGeD1nqDhZ
Resolving secrets
Preparing the "shell" executor
Using Shell (bash) executor...
Preparing environment
su: user gitlab-runner does not exist
ERROR: Job failed: prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information