welcome to PcMac in today's video I'm
going to show you how you can install
docker on a Raspberry Pi before starting
this video I would like you to please
good and subscribe to my channel and if
you like this video please hit the like
button so let's do it
first of all let me just go ahead and
show you on the website that you can
follow with the installation of docker
and raspberry pi so here is the website
PC Mac dot base forward slash talker
raspberry pi dot HTML and I mentioned
all the commands here and the procedure
how you can download the image you
require a raspy and stretch wood desktop
image and then we will start the
installation so first of all let's just
go ahead and connect to my Raspberry Pi
and then we will start the installation
my Raspberry Pi is up and running so
let's use a wireless network watcher to
check the IP address of our Raspberry Pi
and it's right here
raspberry pi that is 73 and I have
already installed the remote desktop on
my Raspberry Pi so if you don't know how
to install the remote text of you will
see the link on the top right corner
just now you can watch that video so
let's just open MST SC and try to
connect to the 73 IP address let's type
the name PI and the password
and I'm connected in a moment yes I'm
right here on my Raspberry Pi screen so
let's just open the terminal from here
either you can use the terminal from
here or you can just go ahead and use
the SSH on your main machine so let's
just try to open the SSH and open
192.168.1.5 in three either you can use
it from there or you can use it from
here so let's just log in with the PI
and the password so I am logged in now
let's just type the first command from
here to upgrade and update the operating
system it might take a moment to update
once the update and upgrade is finish we
will go ahead and download the docker
image so let's just go and install
docker now
this is a single command that you can
use to install docker
on your Raspberry Pi so this is the
important command that you need to
follow then we will add the PI user to
the docker group and check whether the
docker is successfully installed or not
now the docker is installed as you can
see here adding a user to docker group
will grant the ability to run containers
which cannot be used to obtain root
privileges on the docker host so let's
just go ahead and add the PI user to the
docker group
so it's done now now we will check the
version of the talker which we installed
on our Raspberry Pi by using the command
docker version and from here you can see
the version is eighteen point zero nine
point zero so here is the result of this
command and we are getting an error
message as well got permission denied
while trying to connect to the darker
daemon socket so it will be fixed later
in the video let's just check the
information to resolve the problems so
the command is talker info in small
letters and as you can see got
permission denied we'll try to connect
to the darker daemon socket so let's
just try to reboot now let's try to
connect to the SSH again by restarting
session user is spy and then the
password we are right here let's just go
ahead and try to check docker info again
and as you can see we are having docker
info container zero running zero power
zero
so by just restarting the machine the
error got resolved now we have some
warnings here like no memory limit
support no swamped limit support so we
need to remove these error otherwise we
are not able to download the images and
working on them so what we need to do is
just we need to make some changes to one
file that is this CMD line dot txt let
me just copy it and paste it here and it
will open this so what we need to do is
we need to just put these two parameters
at the end of this file so let's just
copy it and go back to the SSH and move
to the last of this line
once we're here just put a space and
then put this parameters on the end of
this line and then control X and then Y
yes and hit enter so this is done prior
to that we have 1 2 3 4 5 6 error
messages now let's check how many error
messages terminated now we need to
reboot the Machine one more time
now once the system come back we just
need to right-click and restart session
then login with the PI user and the
password now let's check the docker in
for one more time and as you can see
there is only three error messages now
so the main error messages were removed
and it's working fine now so now what we
need to do is which we need to check the
docker is working fine or not by just
downloading the small image docker run
hello world let's just copy this command
as well once we just type this command
it says unable to find image HelloWorld
latest because it's not installed
earlier locally on the computer on the
docker itself so it will downloaded it
from the internet so it says pull
complete and it give us the result of
the hello from docker this message
showed that you have that your
installation appears to be working
correctly so this is all the commands
that you need to do while installing the
docker now there are some other commands
as well that you can use the first
command is list all the docking
containers that are installed so it's
talker PS - eh let's just copy and paste
it here and as you can see we have one
container let's write here the image
hello world
let me just maximize it again let's type
the same command now you will see it
correctly the container ID is right here
then the image name is hello world and
you can see it's created 49 seconds ago
the command is hello so the next command
that I'm going to show you is
you can restart any image or any
container by typing docker restart and
either you can use the image name that
is hello world or you can just use the
container ID so let me just show you
with the container ID and by just doing
this it will restart the image for you
the hello world image so if any
container is stopped you can just
restart it by using this command now the
next command is rename the container
must just type in the Crocker rename and
then the container name and you can
easily rename it and if you want to
remove a container let me just show you
this docker RM this is the command to
remove the container so let's just use
this command and then the container ID
and enter and it's removed let's just
check docker PS - a it will list all the
containers now everything is removed so
there is no container available now so
you can use these commands and if you
want to remove the docker from your
raspberry pi here is the command this
will completely uninstall docker
these two commands you need to type and
it will automatically remove docker
completely from your trash very PI
operating system so guys this is the
conclusion of this video that how you
can install the docker on your raspberry
pi and install the docker images onto
the talker so if you like this video
please go ahead and hit the like button
and subscribe to our Channel
subscribe to our YouTube channel and
thank you for watching bye bye take care
have a nice day
