Skip to content

Docker on Ubuntu 16.04

Step-1: update cache

[code lang=”bash”]
$ sudo apt-get update
[/code]

Step-2: Remove Older Docker version if installed

[code lang=”bash”]
$ sudo apt-get remove docker docker-engine docker.io
[/code]

Step-3: Install Pre-Requisites

[code lang=”bash”]
$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
[/code]

Step-4: Install GPG Key

[code lang=”bash”]
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
[/code]

Step-5: SET UP THE REPOSITORY

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

Step-6: Install Docker

[code lang=”bash”]
$ sudo apt-get update
$ sudo apt-get install docker-ce
[/code]

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

[code lang=”bash”]
$ sudo apt-get purge docker-ce
$ sudo rm -rf /var/lib/docker
[/code]

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

[code lang=”bash”]
# Add your user to the docker group
$ sudo usermod -aG docker $USER
[/code]

Shashi View All

-== Superman ==-

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: