Skip to content

Instantly share code, notes, and snippets.

@lifeisfoo
Created February 2, 2018 00:13
Show Gist options
  • Save lifeisfoo/0c9dffe8893e707a5d998c7cc7538ce0 to your computer and use it in GitHub Desktop.
Save lifeisfoo/0c9dffe8893e707a5d998c7cc7538ce0 to your computer and use it in GitHub Desktop.
Docker CE setup on ubuntu 16.04+
#!/bin/bash
# DOC https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
apt-get remove docker docker-engine docker.io
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
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"
apt-get update
apt-get install docker-ce=17.12.0~ce-0~ubuntu
@lifeisfoo
Copy link
Author

Interactive usage:

# curl -fsSL https://gist.githubusercontent.com/lifeisfoo/0c9dffe8893e707a5d998c7cc7538ce0/raw/95f9da74820e1d938bd099b85bad757612e39cf7/docker_setup_ubuntu.sh -o docker_setup_ubuntu.sh
# sh docker_setup_ubuntu.sh 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment