Last active
July 4, 2017 13:14
-
-
Save szukalski/604faf7d4930df88f42d2940e1e9a28f to your computer and use it in GitHub Desktop.
install_docker_ubuntu_16.04.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this as root | |
# Configure docker repo | |
apt-get update | |
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 - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get update | |
# Install pre-reqs | |
apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual -y | |
# Install docker and start service | |
apt-get install docker-ce -y | |
systemctl enable docker | |
service docker start | |
#usermod -aG docker $USER | |
# Install docker-compose | |
curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
# All done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment