From 1393ba4f8e28616ee2acf179293916ed9a0ca5ad Mon Sep 17 00:00:00 2001 From: Marko Kosmerl Date: Fri, 21 Jun 2024 16:37:24 +0000 Subject: [PATCH] uidmap --- releaseVersion | 2 +- src/Runner.Worker/Container/DockerCommandManager.cs | 2 ++ src/runnerversion | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/releaseVersion b/releaseVersion index 0e73971b094..8baaf74656b 100644 --- a/releaseVersion +++ b/releaseVersion @@ -1 +1 @@ -2.317.0-podman5 +2.317.0-podman6 diff --git a/src/Runner.Worker/Container/DockerCommandManager.cs b/src/Runner.Worker/Container/DockerCommandManager.cs index 0c3e6bba2f9..99182a67b4f 100644 --- a/src/Runner.Worker/Container/DockerCommandManager.cs +++ b/src/Runner.Worker/Container/DockerCommandManager.cs @@ -116,6 +116,8 @@ public async Task DockerCreate(IExecutionContext context, ContainerInfo // TODO: pull opts from env dockerOptions.Add("--privileged"); dockerOptions.Add("--cgroupns host"); + dockerOptions.Add("--uidmap 1001:0:1"); + dockerOptions.Add("--uidmap 0:1:1001"); //dockerOptions.Add("--userns keep-id"); if (!string.IsNullOrEmpty(container.ContainerWorkDirectory)) { diff --git a/src/runnerversion b/src/runnerversion index 0e73971b094..8baaf74656b 100644 --- a/src/runnerversion +++ b/src/runnerversion @@ -1 +1 @@ -2.317.0-podman5 +2.317.0-podman6