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

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 | sudo apt-key add -


$ sudo add-apt-repository "deb [arch=amd64] $(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

A passionate devops and automation engineer

One thought on “Docker on Ubuntu 16.04 Leave a comment

Leave a Reply

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

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

Facebook photo

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

Connecting to %s

%d bloggers like this: