Trying to fix docker.
This commit is contained in:
parent
6aa34d9898
commit
c9f25f35fc
@ -1,3 +1,3 @@
|
|||||||
# Docker Github Action Runner
|
# Docker Github Action Runner
|
||||||
|
|
||||||
## Version 1.0.13
|
## Version 1.0.14
|
@ -4,6 +4,10 @@ if [[ -z "${HOME_USER}" ]]; then
|
|||||||
HOME_USER="docker"
|
HOME_USER="docker"
|
||||||
fi
|
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
|
# Ensure that all nodes in /dev/mapper correspond to mapped devices currently loaded by the device-mapper kernel driver
|
||||||
dmsetup mknodes
|
dmsetup mknodes
|
||||||
|
|
||||||
@ -112,8 +116,6 @@ else
|
|||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
|
|
||||||
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
|
|
||||||
sudo chmod -R a+rwX /var/run/docker.sock
|
sudo chmod -R a+rwX /var/run/docker.sock
|
||||||
sudo su - ${HOME_USER} -c "sudo usermod -aG docker ${HOME_USER}"
|
sudo su - ${HOME_USER} -c "sudo usermod -aG docker ${HOME_USER}"
|
||||||
[[ $1 ]] && exec "$@"
|
[[ $1 ]] && exec "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user