Skip to content

Instantly share code, notes, and snippets.

@simonwep
Last active July 9, 2021 14:44
Show Gist options
  • Save simonwep/b53b6ad8d4086f45a6834c051ae1762c to your computer and use it in GitHub Desktop.
Save simonwep/b53b6ad8d4086f45a6834c051ae1762c to your computer and use it in GitHub Desktop.

Revisions

  1. simonwep revised this gist Jul 9, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions docker-ubuntu-x86.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@
    # This follows the instructions on https://docs.docker.com/engine/install/ubuntu/ and https://docs.docker.com/compose/install/
    # curl -sSL https://gist.github.com/Simonwep/b53b6ad8d4086f45a6834c051ae1762c/raw/6fca24bd46a18e125667c18438a0ea92ff459e9d | bash

    set -ex

    # Remove old packages
    sudo apt-get remove docker docker-engine docker.io containerd runc

  2. simonwep revised this gist Jun 28, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-ubuntu-x86.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    # This follows the instructions on https://docs.docker.com/engine/install/ubuntu/ and https://docs.docker.com/compose/install/
    # curl -sSL https://gist.github.com/Simonwep/b53b6ad8d4086f45a6834c051ae1762c/raw | bash
    # curl -sSL https://gist.github.com/Simonwep/b53b6ad8d4086f45a6834c051ae1762c/raw/6fca24bd46a18e125667c18438a0ea92ff459e9d | bash

    # Remove old packages
    sudo apt-get remove docker docker-engine docker.io containerd runc
  3. simonwep revised this gist Jun 28, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions docker-ubuntu-x86.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,9 @@ sudo apt-get install \
    gnupg \
    lsb-release -y

    # Add GPG key
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

    # Add package repository
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  4. simonwep revised this gist Jun 28, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions docker-ubuntu-x86.sh
    Original file line number Diff line number Diff line change
    @@ -12,15 +12,15 @@ sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
    lsb-release -y

    # Add package repository
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

    # Install docker engine
    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io
    sudo apt-get install docker-ce docker-ce-cli containerd.io -y

    # Install docker-compose
    sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  5. simonwep revised this gist Jun 28, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions docker-ubuntu-x86.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    #!/bin/bash
    # This follows the instructions on https://docs.docker.com/engine/install/ubuntu/ and https://docs.docker.com/compose/install/
    # curl -sSL https://gist.github.com/Simonwep/b53b6ad8d4086f45a6834c051ae1762c/raw | bash

    # Remove old packages
    sudo apt-get remove docker docker-engine docker.io containerd runc
  6. simonwep revised this gist Jun 28, 2021. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions docker-ubuntu-x86.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    #!/bin/bash
    # This follows the instructions on https://docs.docker.com/engine/install/ubuntu/ and https://docs.docker.com/compose/install/

    LOG_FILE=

    # Remove old packages
    sudo apt-get remove docker docker-engine docker.io containerd runc

  7. simonwep created this gist Jun 28, 2021.
    29 changes: 29 additions & 0 deletions docker-ubuntu-x86.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    #!/bin/bash
    # This follows the instructions on https://docs.docker.com/engine/install/ubuntu/ and https://docs.docker.com/compose/install/

    LOG_FILE=

    # Remove old packages
    sudo apt-get remove docker docker-engine docker.io containerd runc

    # Install dependencies
    sudo apt-get update
    sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

    # Add package repository
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

    # Install docker engine
    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io

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