
Step-1: update the 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]
No comments:
Post a Comment
If you have any doubts or questions, please let us know.