3 Commits

Author SHA1 Message Date
c9f25f35fc Trying to fix docker. 2023-11-11 20:37:36 +00:00
6aa34d9898 Trying to fix docker. 2023-11-11 20:24:03 +00:00
01596cd560 Trying to fix docker. 2023-11-11 19:28:08 +00:00
3 changed files with 12 additions and 2 deletions

View File

@ -34,7 +34,7 @@ RUN sudo apt-get update -qq && sudo apt-get install -qqy \
RUN curl -sSL https://get.docker.com/ | sh
# Define additional metadata for our image.
VOLUME /var/lib/docker
RUN sudo usermod -aG docker docker
#RUN sudo usermod -aG docker docker
#Finishing Installing Docker
# install python and the packages the your code depends on along with jq so we can parse JSON

View File

@ -1,3 +1,3 @@
# Docker Github Action Runner
## Version 1.0.11
## Version 1.0.14

View File

@ -1,5 +1,13 @@
#!/bin/bash
if [[ -z "${HOME_USER}" ]]; then
HOME_USER="docker"
fi
#Ensure that the iptables legacy binary is used instead of the iptables-nft variant
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
# Ensure that all nodes in /dev/mapper correspond to mapped devices currently loaded by the device-mapper kernel driver
dmsetup mknodes
@ -108,6 +116,8 @@ else
fi
sleep 1
done
sudo chmod -R a+rwX /var/run/docker.sock
sudo su - ${HOME_USER} -c "sudo usermod -aG docker ${HOME_USER}"
[[ $1 ]] && exec "$@"
exec bash --login
fi