Docker Installation in Ubuntu | Docker Installation in Ubuntu 22.04 | 06

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey folks my name is ravish and welcome back to another video in the series of devsecops project as you can see on my screen today we are going to talk about Docker installation on a Ubuntu machine or a Ubuntu Linux all right so the steps that we are going to do today is today's agenda is install Docker on Ubuntu VM which we'll talk about there are several methods to do to do that first is install Docker from apt repository and we are going to demo it today another method is to install from the latest Docker list we are not going to do that it's just I want you to know that there are other methods as well we're going to talk about the first method only next we are going to validate the docker installation what exactly is a command to validate whether Docker is installed properly or not and then we are going to pull a Docker base image to check whether everything is fine or not at the end we are going to run a Docker container and check whether everything is running fine or not in this Docker installation all right so this would be today's agenda at the end I would just like to request that if you're new over here and seeing me for the first time kindly subscribe the channel because it really motivates me to create more content like this so without further Ado let's dive right into the demo part okay so as you can see on my screen I'm on the official website docs.docker.com desktop install Ubuntu install Docker desktop okay so just have to click over here in the install Docker desktop and then it is asking to set up Docker package repository first okay so we're going to do that so let's right click over here and open it in a new tab it is telling me to sudo update okay so I'll just open the terminal okay let me just clear the screen first and do a sudo over here okay I already have the root access I'm going to paste it hit enter and then it is done I'll just clear it okay this is done now it is going to ins I have to install this so just copy this command and then right click over here paste hit enter do you want to continue yes I want to continue and I have typed Y and then it's going to take some time okay so I think this is done perfect let me just clear it again the second step is to add docker's official gpg key so I'll have to copy this command I'll make a directory paste it hit enter and then this would have been created perfect and then the next command is this perfect I could have copied like this but just wanted to show you what is happening over here paste it over here enter and that is done the third step is to use the following command to set up the repository so I'll just copy this from directly now you can scroll it like this to see whether everything is right or not perfect paste hit enter and that is done all right so now we have to install the docker engine so update the package so I'll just copy this I have to just copy this from here it's very easy folks paste it over here hit enter and then it is treating packet perfect this is done I'll just clear this after that receiving a gpg error when apt get update so I did not get any kind of this because uh I do not have a any such thing done in that so I'll just have to install Docker engine container container D and Docker compose okay uh talking about this is uh if you get an error like this then your default UMass may be incorrectly configured preventing detention detection of the repository public key file try granting read permissions for Docker public key before updating the packaging index okay so you can use like this shimod command so give them the access all right I did not get any such type of error so I'll just click over here to install the latest version run you after this if you want to do some specific version you can do like this I just want the latest version I'll just copy this paste it over here hit enter and then it is going to ask me whether you want to continue yes I want to continue now it is going to install it first it is going to download so it is going to take somewhere close to like 20 MB over here okay my internet speed coming right now is 11 MB per second and so what I'll do is I'll let it happen and once it is done I'll be fast forward forwarding this video all right okay folks so this is done I'll just clear the screen again so now this step is done so now I have to verify that the docker engine installation is successful by loading a hello world image all you have to do is copy this paste it over here let me just expand it for a better View hit enter it'll say unable to find image hello world latest locally so there is no local image so what it will do is it will pull from the library hello world and as you can see that the Sha 256 is this status download newer image for hello world latest hello from Docker this means that everything is perfectly running fine okay so what is the next step over here this commands download the testimate and runs it in a container when a container runs it prints a confirmation message in exist so you have now successfully installed and start a Docker engine the docker uses group exist but contains no users which is why you require to use sudo to run Docker commands continue the Linux post install to allow non-trivial privileged user to run Docker commands and for another optional configuration step so if you click over here there are another steps that you can do you can just create a Docker group and add to the docker group something like that I do not want to do it right now because I do not need it but if in future we'll need it we'll do that all right so this is done okay so there is another way to do this install from a packet but right now we are not going to do that because our installation is done but you can just go through this how do we do that upgrade the docker engine how do you do that there are multiple commands available over here and why I showed you this why I did not copy paste it everything into a piece of paper or into notepad because I want you to always visit the official website which is talk so dot docker.com and because it is every time updated if there is anything new that has been changed or ought to be changed okay so I think this is done so I hope you have understood everything let me just check how do we check the command Docker version okay I'm not sure how to check the latest version let me just check if I'm meeting hyphen Docker V if I perfect let me just clear this and show you so Docker version 20.10.21 build build f1f this is what we are having in our system right now so at the time of recording this video I have this version maybe you are seeing it after one month two months or a year or after that you will be having a different version all right so folks I hope you have understood it till here and if there is anything if there is any question you want me to explain or you want me uh to explain more on this feel free to comment Down Below in the comment section and I will address that so thanks guys and I'll see you in the next one
Info
Channel: LogicOps Lab
Views: 2,757
Rating: undefined out of 5
Keywords: docker installation in ubuntu, docker installation in ubuntu 22.04, how to install docker in ubuntu, how to install docker in ubuntu 22.04, how to install docker in ubuntu 20.04, how to install docker in ubuntu 18.04, docker installation in ubuntu 18.04, docker installation, install docker in linux, install docker in ubuntu server, installing docker in ubuntu 22.04, installing docker in ubuntu, install docker in ubuntu wsl, how install docker on ubuntu 20.04
Id: D0vrDwPRThQ
Channel Id: undefined
Length: 7min 54sec (474 seconds)
Published: Thu Oct 27 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.