Skip to content

Instantly share code, notes, and snippets.

@fredhsu
Last active April 19, 2023 18:07
Show Gist options
  • Save fredhsu/61b3c34bce9a88f3f716308d514a3814 to your computer and use it in GitHub Desktop.
Save fredhsu/61b3c34bce9a88f3f716308d514a3814 to your computer and use it in GitHub Desktop.
Install docker engine 1.12 on Ubuntu 16.04
#!/bin/bash
sudo apt-get update
sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual -y
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common -y
curl -fsSL 'https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | sudo apt-key add -
sudo add-apt-repository \
"deb https://packages.docker.com/1.12/apt/repo/ \
ubuntu-$(lsb_release -cs) \
main"
sudo apt update
sudo apt-get -y install docker-engine=1.12.6~cs13-0~ubuntu-xenial
sudo usermod -a -G docker $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment