Skip to content

Instantly share code, notes, and snippets.

@istepanov
Last active September 24, 2019 05:37
Show Gist options
  • Select an option

  • Save istepanov/a93f0808f0770764e18088a963be7673 to your computer and use it in GitHub Desktop.

Select an option

Save istepanov/a93f0808f0770764e18088a963be7673 to your computer and use it in GitHub Desktop.

Revisions

  1. istepanov revised this gist Sep 24, 2019. 1 changed file with 1 addition and 19 deletions.
    20 changes: 1 addition & 19 deletions install_docker.sh
    Original file line number Diff line number Diff line change
    @@ -1,19 +1 @@
    sudo apt-get update

    sudo 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 -

    sudo add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) \
    stable"

    sudo apt-get update
    sudo apt-get install -y docker-ce

    sudo usermod -aG docker "$(whoami)"
    curl -sSL https://get.docker.com | sh && sudo usermod "$(whoami)" -aG docker && newgrp docker
  2. istepanov created this gist Nov 3, 2018.
    19 changes: 19 additions & 0 deletions install_docker.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    sudo apt-get update

    sudo 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 -

    sudo add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) \
    stable"

    sudo apt-get update
    sudo apt-get install -y docker-ce

    sudo usermod -aG docker "$(whoami)"