From 33bc4be9fa725a9e2c36d813bfe7d9578c7c10b3 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Wed, 23 Mar 2022 08:14:44 -0500 Subject: [PATCH] fix: operation not permitted in self hosted runners (#172) Self hosted runners in fedora make the docker.sock a link to /run/podman/podman.sock Trying to set the :z on docker.sock seems to cause: ``` Error: lsetxattr /var/run/docker.sock: operation not permitted Error: The process '/usr/bin/docker' failed with exit code 126 ``` I think the :z may be broken for links? hard to tell. --- src/model/docker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/docker.ts b/src/model/docker.ts index 70c4eb1..df560a5 100644 --- a/src/model/docker.ts +++ b/src/model/docker.ts @@ -69,7 +69,7 @@ const Docker = { --env RUNNER_WORKSPACE \ --env GIT_PRIVATE_TOKEN="${gitPrivateToken}" \ ${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \ - --volume "/var/run/docker.sock":"/var/run/docker.sock:z" \ + --volume "/var/run/docker.sock":"/var/run/docker.sock" \ --volume "${githubHome}":"/root:z" \ --volume "${githubWorkflow}":"/github/workflow:z" \ --volume "${workspace}":"/github/workspace:z" \