Installing Docker

Somnath Musib
1 min readMay 28, 2019

This article explains how to install and uninstall docker community edition in Ubuntu

Installation

  1. Add the GPG key for the official Docker repository to the system
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

2. Add the Docker repository to APT sources

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

For Ubuntu 19

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

3. Update

sudo apt-get update

4. Check for policy
apt-cache policy docker-ce

5. Install docker

sudo apt-get install -y docker-ce

6. Check docker version

sudo docker --version

Uninstalling Docker

sudo apt-get purge docker-ce

--

--

Somnath Musib
Somnath Musib

Written by Somnath Musib

4X AWS | Staff Software Engineer, Cloud Architect | Author "Spring Boot In Practice" | Find more at https://musibs.github.io

No responses yet