Skip to content

Instantly share code, notes, and snippets.

@ravishtiwari
Created January 16, 2019 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravishtiwari/97c3b4a943a612e505326b6b82eef214 to your computer and use it in GitHub Desktop.
Save ravishtiwari/97c3b4a943a612e505326b6b82eef214 to your computer and use it in GitHub Desktop.
Installing Docker and Kubernetes on Ubuntu 16.04
#!/bin/bash
apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y kubelet kubeadm kubectl docker-ce=18.06.1~ce~3-0~ubuntu
apt-mark hold kubelet kubeadm kubectl docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment