mirror of
https://github.com/ShaYmez/hblink3-docker-install.git
synced 2025-12-22 21:49:50 +13:00
Update hblink3-docker-install.sh
Update docker repo for apt-get
This commit is contained in:
parent
9c721670a0
commit
e58c174fa2
@ -57,8 +57,8 @@ INSDIR=/opt/tmp/
|
|||||||
HBLINKTMP=/opt/tmp/hblink3
|
HBLINKTMP=/opt/tmp/hblink3
|
||||||
HBMONDIR=/opt/HBMonv2/
|
HBMONDIR=/opt/HBMonv2/
|
||||||
HBDIR=/etc/hblink3/
|
HBDIR=/etc/hblink3/
|
||||||
DEP="wget curl git python3 python3-dev python3-pip libffi-dev libssl-dev conntrack sed cargo apache2 php snapd figlet"
|
DEP="wget curl git python3 python3-dev python3-pip libffi-dev libssl-dev conntrack sed cargo apache2 php snapd figlet ca-certificates gnupg lsb-release"
|
||||||
DEP1="wget curl git python3 python3-dev python3-pip libffi-dev libssl-dev conntrack sed cargo apache2 php snapd figlet"
|
DEP1="wget curl git python3 python3-dev python3-pip libffi-dev libssl-dev conntrack sed cargo apache2 php snapd figlet ca-certificates gnupg lsb-release"
|
||||||
HBGITREPO=https://github.com/ShaYmez/hblink3.git
|
HBGITREPO=https://github.com/ShaYmez/hblink3.git
|
||||||
HBGITMONREPO=https://github.com/ShaYmez/HBMonv2.git
|
HBGITMONREPO=https://github.com/ShaYmez/HBMonv2.git
|
||||||
echo ""
|
echo ""
|
||||||
@ -68,24 +68,42 @@ echo "--------------------------------------------------------------------------
|
|||||||
|
|
||||||
if [ $VERSION = 10 ];
|
if [ $VERSION = 10 ];
|
||||||
then
|
then
|
||||||
|
apt-get update
|
||||||
apt-get install -y $DEP
|
apt-get install -y $DEP
|
||||||
sleep 2
|
sleep 2
|
||||||
figlet "docker.io"
|
apt-get remove docker docker-engine docker.io containerd runc
|
||||||
curl -sSL https://get.docker.com | sh
|
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||||
|
|
||||||
|
echo \
|
||||||
|
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
|
||||||
|
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install docker-ce docker-ce-cli containerd.io
|
||||||
apt-get install -y docker-compose
|
apt-get install -y docker-compose
|
||||||
systemctl enable docker
|
systemctl enable docker
|
||||||
systemctl start docker
|
systemctl start docker
|
||||||
|
figlet "docker.ce"
|
||||||
echo Set userland-proxy to false...
|
echo Set userland-proxy to false...
|
||||||
echo '{ "userland-proxy": false}' > /etc/docker/daemon.json
|
echo '{ "userland-proxy": false}' > /etc/docker/daemon.json
|
||||||
elif [ $VERSION = 11 ];
|
elif [ $VERSION = 11 ];
|
||||||
then
|
then
|
||||||
apt-get install -y $DEP1
|
apt-get update
|
||||||
|
apt-get install -y $DEP
|
||||||
sleep 2
|
sleep 2
|
||||||
figlet "docker.io"
|
apt-get remove docker docker-engine docker.io containerd runc
|
||||||
curl -sSL https://get.docker.com | sh
|
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||||
|
|
||||||
|
echo \
|
||||||
|
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
|
||||||
|
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install docker-ce docker-ce-cli containerd.io
|
||||||
apt-get install -y docker-compose
|
apt-get install -y docker-compose
|
||||||
systemctl enable docker
|
systemctl enable docker
|
||||||
systemctl start docker
|
systemctl start docker
|
||||||
|
figlet "docker.ce"
|
||||||
echo Set userland-proxy to false...
|
echo Set userland-proxy to false...
|
||||||
echo '{ "userland-proxy": false}' > /etc/docker/daemon.json
|
echo '{ "userland-proxy": false}' > /etc/docker/daemon.json
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user