Skip to content

Commit dcc7ca3

Browse files
committed
Revert "Try to remap docker.sock, if mounted inside Docker, to internal docker"
This reverts commit 425d344.
1 parent 0736064 commit dcc7ca3

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ghcr.io/actions/actions-runner:${VERSION}
55
# Tools that are useful during Github action runs
66
ARG TOOLS="bzip2 unzip git coreutils psmisc jq curl"
77
ENV WORKDIR="/home/runner"
8-
ENV USER="runner"
8+
ARG USER="runner"
99

1010
USER root
1111

@@ -16,6 +16,7 @@ RUN apt-get update && \
1616
ADD entrypoint.sh /home/runner/
1717
RUN chmod +x /home/runner/entrypoint.sh
1818

19+
USER ${USER}
1920
WORKDIR ${WORKDIR}
2021

2122
ENTRYPOINT [ "/home/runner/entrypoint.sh" ]

entrypoint.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22

33
set -e -o pipefail
44

5-
# remap docker group permissions
6-
if [ -e /var/run/docker.sock ]; then
7-
chgrp docker /var/run/docker.sock
8-
fi
9-
10-
echo "Chaning to user '${USER}'"
11-
su "${USER}"
12-
13-
ls -lah /var/run/docker.sock
14-
docker ps
15-
165
# store local variables and clean environment variables to make sure to not
176
# expose more information than necessary.
187
workdir=${WORKDIR}

0 commit comments

Comments
 (0)