Last active
March 17, 2017 08:12
-
-
Save molivier/a663eb73a87894e05ecfd39d5f50f0c5 to your computer and use it in GitHub Desktop.
Docker install - Debian Jessie - Openstack
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
#!/usr/bin/env bash | |
# Install packages to allow apt to use a repository over HTTPS | |
apt install -y apt-transport-https ca-certificates curl software-properties-common | |
# Add Docker’s official GPG key | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
# Add Docker Repository | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | |
# Update and Install Docker | |
apt update | |
apt install -y docker-ce | |
# Add private network interface to /etc/network/interfaces | |
echo " | |
auto eth1 | |
allow-hotplug eth1 | |
iface eth1 inet dhcp" >> /etc/network/interfaces | |
# Activate second interface | |
ifup eth1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment