Skip to content

Instantly share code, notes, and snippets.

@Itch3f
Forked from dhoeric/Ubuntu 16.04
Created March 14, 2021 12:42
Show Gist options
  • Save Itch3f/9cc2dc445db705aa9e46cbe0463b9bee to your computer and use it in GitHub Desktop.
Save Itch3f/9cc2dc445db705aa9e46cbe0463b9bee to your computer and use it in GitHub Desktop.

Revisions

  1. @dhoeric dhoeric revised this gist Apr 25, 2018. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #!/bin/bash
    # Install docker
    apt-get update
    apt-get install -y apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    @@ -10,6 +11,10 @@ apt-get update
    apt-get install -y docker-ce
    usermod -aG docker ubuntu

    # Install docker-compose
    curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose

    # READ MORE: https://docs.docker.com/install/linux/docker-ce/ubuntu/
    # To check: grep "cloud-init\[" /var/log/syslog
    # OR: less /var/log/cloud-init-output.log
  2. @dhoeric dhoeric revised this gist Apr 25, 2018. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,11 @@ add-apt-repository \
    stable"
    apt-get update
    apt-get install -y docker-ce
    usermod -aG docker ubuntu

    # READ MORE: https://docs.docker.com/install/linux/docker-ce/ubuntu/
    # To check: grep "cloud-init\[" /var/log/syslog
    # OR: less /var/log/cloud-init-output.log
    # OR: less /var/log/cloud-init-output.log

    # Manually add user to docker group
    # sudo usermod -aG docker $USER
  3. @dhoeric dhoeric revised this gist Mar 23, 2018. 1 changed file with 8 additions and 5 deletions.
    13 changes: 8 additions & 5 deletions Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,14 @@
    #!/bin/bash
    apt-get update
    apt-get install -y apt-transport-https ca-certificates
    apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
    apt-get install -y apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) \
    stable"
    apt-get update
    apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual docker-engine
    apt-get install -y docker-ce

    # READ MORE: https://docs.docker.com/engine/installation/linux/ubuntulinux/
    # READ MORE: https://docs.docker.com/install/linux/docker-ce/ubuntu/
    # To check: grep "cloud-init\[" /var/log/syslog
    # OR: less /var/log/cloud-init-output.log
  4. @dhoeric dhoeric revised this gist Jan 10, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,5 @@ apt-get update
    apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual docker-engine

    # READ MORE: https://docs.docker.com/engine/installation/linux/ubuntulinux/
    # To check: grep "cloud-init\[" /var/log/syslog
    # To check: grep "cloud-init\[" /var/log/syslog
    # OR: less /var/log/cloud-init-output.log
  5. @dhoeric dhoeric revised this gist Jan 6, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,5 @@ echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /et
    apt-get update
    apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual docker-engine

    # READ MORE: https://docs.docker.com/engine/installation/linux/ubuntulinux/
    # READ MORE: https://docs.docker.com/engine/installation/linux/ubuntulinux/
    # To check: grep "cloud-init\[" /var/log/syslog
  6. @dhoeric dhoeric created this gist Dec 1, 2016.
    9 changes: 9 additions & 0 deletions Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/bash
    apt-get update
    apt-get install -y apt-transport-https ca-certificates
    apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
    apt-get update
    apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual docker-engine

    # READ MORE: https://docs.docker.com/engine/installation/linux/ubuntulinux/