Below you will find the commands to install docker on Ubuntu. For you convenience, you can simply copy and paste the commands.

Relevant Documentation
  • Install required packages:
    • sudo apt-get update sudo apt-get -y install \
      apt-transport-https \
      ca-certificates \
      curl \
      gnupg-agent \
  • Add the Docker GPG key and repo:
    • curl -fsSL | sudo apt-key add –
    • sudo apt-key fingerprint 0EBFCD88
    • sudo add-apt-repository \
      “deb [arch=amd64] \
      $(lsb_release -cs) \
  • Install Docker CE packages:
    • sudo apt-get update
    • sudo apt-get install -y docker-ce=5:18.09.5~3-0~ubuntu-bionic docker-ce-cli=5:18.09.5~3-0~ubuntu-bionic
  • Give cloud_user permission to run docker commands:
    • sudo usermod -a -G docker cloud_user
  • Log out and back in.
  • Test the installation by running a simple container:
    • docker run hello-world

Leave a Reply

Your email address will not be published. Required fields are marked *