Skip to content

Instantly share code, notes, and snippets.

@tintoy
Last active February 13, 2018 21:11
Show Gist options
  • Select an option

  • Save tintoy/bf139e8a207e37fb3e8e546e4da4bc50 to your computer and use it in GitHub Desktop.

Select an option

Save tintoy/bf139e8a207e37fb3e8e546e4da4bc50 to your computer and use it in GitHub Desktop.
Install Docker 1.12.6 and kubectl on Ubuntu
#!/bin/bash
set -euo pipefail
apt update
apt install -y --no-install-recommends apt-transport-https curl software-properties-common
apt install -y --no-install-recommends linux-image-extra-$(uname -r) linux-image-extra-virtual
curl -fsSL 'https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | sudo apt-key add -
add-apt-repository "deb https://packages.docker.com/1.12/apt/repo/ ubuntu-$(lsb_release -cs) main"
apt update
apt-get autoremove -y
apt install -y docker-engine
docker info
#!/bin/bash
set -euo pipefail
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod a+x ./kubectl
mv ./kubectl /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment