Docker tutorial - Install Docker on Ubuntu fast

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi i'm andrew malka if you are using linux as your operating system and you want to start exploring the world of containers this is the right place in this short video i'm going to show you how to install docker on linux in my next video i will show you how to use docker to run the containers so please subscribe to my channel to not miss it but right now let's focus on the installation process i'm going to use my machine with ubuntu if you are using another linux distribution i will show you where you can find detailed instructions so i switch to my browser and i type docker i will scroll down and here is the link to docs the docs.docker.com open in a new tab and you can click on the download and install then i click on docker for linux and then i'm opening the installation per distro and as you can see there is a detailed instructions how to install uh docker on centos debian fedora ubuntu in my case i'm going to follow ubuntu procedure but in your case it could be any other distros that you use so i'm switching to my terminal and this is my ubuntu 2004 machine if i type docker now we will see that the command docker not found so there is no docker on this machine before i will install docker on this machine for the first time i need to set up a docker repository afterwards i can install and update docker from the repository so i don't need to follow all the steps again and again again so the first command that i'm going to run is command to update my apt packages so i type sudo apt get update you don't need to retype all these commands i will put all the commands that i run in the description to this video so you just simply can copy paste when i click enter okay so all my packages are updated and right now i'm going to install some packages to allow apt to use a repository over https and to do so i type sudo apt-get install and the first package will be apt transport https the next package will be ca certificates the next package is curl then jnupg agent and the last one software properties common and i click enter it asks me if i want to continue i say yes and it's finished so the next step that we need to do is we need to add a gpg key if you don't know what is gpg gpg its implementation of open pretty good privacy which is encryption technique that was originally designed for email exchange but right now it's commonly used to sign the software in linux or for example to sign repositories on github so we need to add a gpg key i will clear my screen and to do so i execute the command curl with the flags f s s l then i need to specify a url for the key which is https download docker.com slash linux slash ubuntu slash gpg and then another command sudo apt key at minus and i click enter and my ubuntu give me a warning that apt key is deprecated but it's also reply with ok so it means that we have a key to check that i'm going to execute the command sudo apt key fingerprint and i'm going to use the eight last characters from the gpg key which are 0 e b f c d eight eight and i click enter again the same warning that this apt key is deprecated but in any case uh it reply with the full fingerprint so our pgp key is added successfully and the last command to set up the repository will be actually add this repository to apt so i type sudo at apt repository and then i provide a string which contains depth next i need to provide an architecture so i type arc equals in my case it's imd64 but in your case it could be different like for example irm if you're running on the raspberry pi and again i want to repeat if you want to see all the possible architectures then you can go to documentation website and if you scroll to this tab you will be able to see this is this is for imd64 this is for iran and this is for irm 64 yeah so you can see all the commands that you provide for multiple architectures i'm switching to my terminal and because i'm using amd64 so i just type md64 then i need to provide a url for this repository which will be https download.docker.com slash linux slash ubuntu then i provide the lsb release command and i provide two flags cs that will actually return the code name of my distribution in the short format and then at the end i type stable because i want to use repository that contains the stable version of docker if you prefer to have nightly or test repository then you can also type it here after this table and i click enter and i press enter to continue and it's done so i clear my screen and right now everything is ready to install docker engine on linux to do so i again update my apt packages so i type sudo apt get update and i click enter and the next command will install docker i type sudo apt get install docker ce i also want to install docker cli so i type docker ce cli and container dio and i click enter it asks me if i want to continue of course i want and it's done so i clear my screen and i can type command just to see if docker works at all i type docker version and as you can see right now it doesn't say that docker is not found it says that the version of the docker is 2010 and to prove that docker can successfully run a container i can type sudo docker run hello world and i click enter and if you see the text hello from docker then it means that the docker can successfully run your containers which actually means that the docker is successfully installed on linux and ready to use and how to use docker to run containers will be my next video so subscribe to my channel to not miss it thanks for watching and see you next time
Info
Channel: Andrew Malkov
Views: 28,243
Rating: undefined out of 5
Keywords: docker tutorial, docker, docker tutorial for beginners, docker explained, what is docker, docker installation, install docker, docker install, docker raspberry pi, docker ubuntu 20.04, docker ubuntu, docker ubuntu tutorial, docker ubuntu install, docker installation in ubuntu, installing docker on ubuntu, install docker on linux, install docker in ubuntu, install docker ubuntu, install docker on ubuntu, docker linux tutorial, docker linux
Id: 5Dhx_ssK8oY
Channel Id: undefined
Length: 8min 44sec (524 seconds)
Published: Sun Feb 14 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.