Created
March 31, 2017 05:25
-
-
Save tamoot/7f889814ee4ed09b575bd25fe6525039 to your computer and use it in GitHub Desktop.
install_docker.sh for Ubuntu 16.04 Xenial
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 | |
# 2017/03/31 see follwing URL | |
# - https://docs.openstack.org/admin-guide/support-compute.html | |
ls /etc/.docker-ce | |
if [ $? -eq 0 ]; then | |
exit 0 | |
fi | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
apt-get update | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get install -y \ | |
docker-ce | |
apt-get update | |
apt-get install -y \ | |
docker-compose | |
touch /etc/.docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment