Cannot apt-get in docker executors

I have followed the guides to setup gitlab-ee:

I can run ci, but whenever I try to install new packages (using apt-get on debian-based docker containers, or apk on alpine-based docker containers), I do get permission denied. It seems I don’t have root permissions in my docker containers. How can I setup the docker containers so I can install packages?

(using the docker image gradle/alpine, I can use gradle to download java packages, but no luck with downloading debs:

$ gradle --build-cache assemble



$ sudo cat /etc/gitlab-runner/config.toml
concurrent = 5
check_interval = 0

name = "..."
url = "..."
token = "..."
executor = "docker"
tls_verify = false
image = "alpine:latest"
privileged = true
disable_cache = false
volumes = ["/cache"]
shm_size = 0
$ apt-get update -qy && apt-get upgrade
Reading package lists...
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

Did you manage to resolve this? I am facing the same issue.

Thank you in advance and regards.