Last active
January 13, 2018 14:57
-
-
Save Edison-Hsu/84d785a4b0eb527e0d3251bc27a39925 to your computer and use it in GitHub Desktop.
ubuntu_install_docker
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 | |
| apt-get upgrade | |
| apt-get update | |
| apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common -y | |
| 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 docker-ce -y | |
| # install docker-compose | |
| # pip install docker-compose | |
| # speed up | |
| # curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://d2137366.m.daocloud.io | |
| # systemctl restart docker.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment