Created
February 2, 2018 00:13
-
-
Save lifeisfoo/0c9dffe8893e707a5d998c7cc7538ce0 to your computer and use it in GitHub Desktop.
Docker CE setup on ubuntu 16.04+
This file contains 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 | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interactive usage: