Trying to fix docker.

This commit is contained in:
Alejandro Lembke Barrientos 2023-11-11 19:28:08 +00:00
parent 17c7eb28a8
commit 01596cd560
3 changed files with 8 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.12

View File

@ -1,5 +1,9 @@
#!/bin/bash
if [[ -z "${HOME_USER}" ]]; then
HOME_USER="docker"
fi
# Ensure that all nodes in /dev/mapper correspond to mapped devices currently loaded by the device-mapper kernel driver
dmsetup mknodes
@ -108,6 +112,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