Skip to content

Instantly share code, notes, and snippets.

@ngs
Created June 18, 2020 02:42
Show Gist options
  • Select an option

  • Save ngs/11331fb323c9b1008b874441d0dcdda8 to your computer and use it in GitHub Desktop.

Select an option

Save ngs/11331fb323c9b1008b874441d0dcdda8 to your computer and use it in GitHub Desktop.

Revisions

  1. ngs created this gist Jun 18, 2020.
    23 changes: 23 additions & 0 deletions ubuntu-install-docker.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # https://docs.docker.com/engine/install/ubuntu/

    apt-get update -y

    apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -

    apt-key fingerprint 0EBFCD88

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

    apt-get update -y

    apt-get install docker-ce docker-ce-cli containerd.io