Skip to content

Commit

Permalink
uidmap
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-k0 committed Jun 21, 2024
1 parent ac43de9 commit 1393ba4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion releaseVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.317.0-podman5
2.317.0-podman6
2 changes: 2 additions & 0 deletions src/Runner.Worker/Container/DockerCommandManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public async Task<string> 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))
{
Expand Down
2 changes: 1 addition & 1 deletion src/runnerversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.317.0-podman5
2.317.0-podman6

0 comments on commit 1393ba4

Please sign in to comment.