use apt pls
This commit is contained in:
parent
60db4901b6
commit
8d6c0e9457
@ -24,13 +24,13 @@ fi
|
|||||||
DOCKER_INSTALLED=$(which docker)
|
DOCKER_INSTALLED=$(which docker)
|
||||||
if [ "$DOCKER_INSTALLED" = "" ]
|
if [ "$DOCKER_INSTALLED" = "" ]
|
||||||
then
|
then
|
||||||
apt-get remove docker docker-engine docker.io
|
apt remove docker docker-engine docker.io
|
||||||
apt-get update
|
apt update
|
||||||
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
|
apt install -y apt-transport-https ca-certificates curl software-properties-common
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||||||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||||
apt-get update
|
apt update
|
||||||
apt-get install -y docker-ce
|
apt install -y docker-ce
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -42,8 +42,8 @@ then
|
|||||||
touch /etc/apt/sources.list.d/kubernetes.list
|
touch /etc/apt/sources.list.d/kubernetes.list
|
||||||
chmod 666 /etc/apt/sources.list.d/kubernetes.list
|
chmod 666 /etc/apt/sources.list.d/kubernetes.list
|
||||||
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
|
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
|
||||||
apt-get update
|
apt update
|
||||||
apt-get install -y kubelet=1.15.4-00 kubeadm=1.15.4-00 kubectl kubernetes-cni
|
apt install -y kubelet=1.15.4-00 kubeadm=1.15.4-00 kubectl kubernetes-cni
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Disabling swap for Kubernetes
|
#Disabling swap for Kubernetes
|
||||||
|
Loading…
Reference in New Issue
Block a user