fix: use numeric docker user id

This commit is contained in:
Michael Kriese 2021-08-23 11:33:13 +02:00
parent 2320feb7c0
commit b23e6d84fc
No known key found for this signature in database
GPG key ID: B83F553A0724D44E

View file

@ -17,7 +17,7 @@ class Renovate {
}
async runDockerContainer(): Promise<void> {
const renovateDockerUser = 'ubuntu';
const renovateDockerUser = '1000';
const dockerArguments = this.input
.toEnvironmentVariables()
@ -36,7 +36,7 @@ class Renovate {
dockerArguments.push(
'--volume /var/run/docker.sock:/var/run/docker.sock',
'--volume /tmp:/tmp',
// `--user ${renovateDockerUser}:${this.getDockerGroupId()}`,
`--user ${renovateDockerUser}:${this.getDockerGroupId()}`,
'--rm',
this.docker.image()
);