Skip to content

Instantly share code, notes, and snippets.

@molivier
Last active March 17, 2017 08:12
Show Gist options
  • Save molivier/a663eb73a87894e05ecfd39d5f50f0c5 to your computer and use it in GitHub Desktop.
Save molivier/a663eb73a87894e05ecfd39d5f50f0c5 to your computer and use it in GitHub Desktop.
Docker install - Debian Jessie - Openstack
#!/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