Skip to content

Instantly share code, notes, and snippets.

@khan-rizwan
Forked from fredhsu/ubuntudocker.sh
Last active July 17, 2018 14:03
Show Gist options
  • Save khan-rizwan/65b0b0545cc842de9988c425b9b726b3 to your computer and use it in GitHub Desktop.
Save khan-rizwan/65b0b0545cc842de9988c425b9b726b3 to your computer and use it in GitHub Desktop.
Shell script to install Docker CE on ubuntu and post-install user configuration
#!/bin/bash
apt-get install -y \
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 \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment