How to Install Docker CE Repository for Ubuntu Based OSes

April 18, 2017 | By the+gnu+linux+evangelist | Filed in: Tutorial.

GNU/Linux Ubuntu Docker CE Repository Setup Guide


You are Welcome! This Tip Shows You Step-by-Step How to Setup the Apt Repository for Docker Community Edition Installation for Linux Ubuntu Based Systems.

And the Docker Ubuntu Repo dispose of Multiple Channels: stable, nightly, edge.

Finally, so this Docker Repo Setup is good also for:

  • Mint
  • Lubuntu
  • Kubuntu
  • Xubuntu
  • Zorin OS
  • Elementary OS
  • feren OS
  • LXLE Linux
  • Linux Lite
  • Bodhi Linux
  • Kde Neon
  • Peppermint Linux
  • Q4OS Linux
  • Linux Ultimate Edition

Docker is a Command-line Program, a background Daemon, and a set of Remote Services that take a Logistical Approach to Solving common Software Sroblems and Simplifying your experience Installing, Running, Publishing, and Removing Software.

Getting-Started with Docker on Ubuntu is Easy, it’s enough to Install it and then Use the Docker Engine to Create and Manage Containers.

How to SetUp the Docker Apt Repository for Ubuntu and Mint Linux - Featured
  1. Open a Shell session
    (Press “Enter” to Execute Commands)

    Docker CE Apt Repository Setup on Ubuntu/Mint - Open Terminal Shell Emulator
  2. Add the Docker CE Apt Repo
    For the ‘nightly‘ Channel:

    sudo add-apt-repository 
    "deb [arch=amd64] 
    $(lsb_release -cs) nightly"

    Instead, for the ‘stable‘ Build:

    sudo add-apt-repository 
    "deb [arch=amd64] 
    $(lsb_release -cs) stable"

    Change ‘stable’ to ‘nightly’ for the Latest in All the below…
    For Mint 19.x, Elementary Juno, Zorin 13, Bodhi 5, Lite 4:

    sudo add-apt-repository 
    "deb [arch=amd64] 
    bionic stable"

    For Mint 18.x, Elementary Loki, Zorin 12, Bodhi 4, Lite 3:

    sudo add-apt-repository 
    "deb [arch=amd64] 
    xenial stable"

    For Mint 17.x instead:

    sudo add-apt-repository 
    "deb [arch=amd64] 
    trusty stable"
  3. Import the Docker CE GPG Key

    curl -fsSL | 
    sudo apt-key add -
  4. Last Refresh the Repositories

    sudo apt update

    If Not found for the Latest Ubuntu Release then Amend it manually with:

    sudo nano /etc/apt/sources.list

    And for instance, Change: focal

    In some Previous release like for instance: disco

    Ctrl+x to Save & Exit from nano ;)

  5. Docker Quick Start for Ubuntu/Mint

    Docker Quick Start Guide

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , ,