Trying to fix docker.
This commit is contained in:
parent
17c7eb28a8
commit
01596cd560
@ -34,7 +34,7 @@ RUN sudo apt-get update -qq && sudo apt-get install -qqy \
|
|||||||
RUN curl -sSL https://get.docker.com/ | sh
|
RUN curl -sSL https://get.docker.com/ | sh
|
||||||
# Define additional metadata for our image.
|
# Define additional metadata for our image.
|
||||||
VOLUME /var/lib/docker
|
VOLUME /var/lib/docker
|
||||||
RUN sudo usermod -aG docker docker
|
#RUN sudo usermod -aG docker docker
|
||||||
#Finishing Installing Docker
|
#Finishing Installing Docker
|
||||||
|
|
||||||
# install python and the packages the your code depends on along with jq so we can parse JSON
|
# install python and the packages the your code depends on along with jq so we can parse JSON
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Docker Github Action Runner
|
# Docker Github Action Runner
|
||||||
|
|
||||||
## Version 1.0.11
|
## Version 1.0.12
|
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/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
|
# Ensure that all nodes in /dev/mapper correspond to mapped devices currently loaded by the device-mapper kernel driver
|
||||||
dmsetup mknodes
|
dmsetup mknodes
|
||||||
|
|
||||||
@ -108,6 +112,8 @@ else
|
|||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
sudo chmod -R a+rwX /var/run/docker.sock
|
||||||
|
sudo su - ${HOME_USER} -c "sudo usermod -aG docker ${HOME_USER}"
|
||||||
[[ $1 ]] && exec "$@"
|
[[ $1 ]] && exec "$@"
|
||||||
exec bash --login
|
exec bash --login
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user