Installing Docker
1 min readMay 28, 2019
This article explains how to install and uninstall docker community edition in Ubuntu
Installation
- 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 policyapt-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