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.

Revisions

  1. molivier revised this gist Mar 17, 2017. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -19,6 +19,5 @@ auto eth1
    allow-hotplug eth1
    iface eth1 inet dhcp" >> /etc/network/interfaces

    # Update and Reboot
    apt update && apt upgrade -y
    reboot
    # Activate second interface
    ifup eth1
  2. molivier revised this gist Mar 16, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -20,5 +20,5 @@ allow-hotplug eth1
    iface eth1 inet dhcp" >> /etc/network/interfaces

    # Update and Reboot
    apt update && apt upgrade
    apt update && apt upgrade -y
    reboot
  3. molivier revised this gist Mar 16, 2017. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,8 @@ apt install -y docker-ce
    echo "
    auto eth1
    allow-hotplug eth1
    iface eth1 inet dhcp" >> /etc/network/interfaces
    iface eth1 inet dhcp" >> /etc/network/interfaces

    # Update and Reboot
    apt update && apt upgrade
    reboot
  4. molivier created this gist Mar 16, 2017.
    20 changes: 20 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/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