Skip to content

Docker on Ubuntu 16.04

Step-1: update cache

$ sudo apt-get update

Step-2: Remove Older Docker version if installed

$ sudo apt-get remove docker docker-engine docker.io

Step-3: Install Pre-Requisites

$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

Step-4: Install GPG Key

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

Step-5: SET UP THE REPOSITORY

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

Step-6: Install Docker

$ sudo apt-get update
$ sudo apt-get install docker-ce

Step-7: Removing Images, containers, volumes, or customized configuration files

$ sudo apt-get purge docker-ce
$ sudo rm -rf /var/lib/docker

Step-8: Manage Docker as a non-root user

# Add your user to the docker group
$ sudo usermod -aG docker $USER

Shashi View All

-== Superman ==-

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: