---
title: "Gitlab Runner Could Not Lock Git Config File"
date: 2021-08-26T14:05:54.000Z
author: Z.SHINCHVEN
tags: [GitLab Runner]
canonical: https://atlassc.net/2021/08/27/gitlab-runner-could-not-lock-git-config-file
---
I just setup a new [gitlab runner](https://hub.docker.com/r/gitlab/gitlab-runner/), but job keep failing with an error:

> error: could not lock config file /root/.gitconfig: Operation not permitted

I sense this could be caused by a buggy gitlab runner version, I switch `gitlab/gitlab-runner` from tag `alpine-v14.2.0` to `ubuntu-v14.2.0`, and problem solved.
