Skip to content

Instantly share code, notes, and snippets.

@albertomm
Created December 15, 2018 19:01
Show Gist options
  • Save albertomm/a95b8bab134c5311939bdfda88d8787d to your computer and use it in GitHub Desktop.
Save albertomm/a95b8bab134c5311939bdfda88d8787d to your computer and use it in GitHub Desktop.
Install docker-ce in Ubuntu Trusty based distribution
#/bin/bash
set -e
set -u
apt-get update
apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu trusty stable"
apt-get update
apt-get install docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment