Well let's go on in the previous lecture we have agreed that the container using a 1 2 image.
And here you see that its size is around 65 megabytes.
It is a large and container rolled.
And here in this lecture I'll demonstrate how to use an ounce or much gold Busy Box.
But before doing that let me quickly summarize what we have learned in the previous lecture.
You have seen that if you simply create container or using a good dock Iran will want to come and you
will basically see that container will be created but it will be exited automatically because brought
us inside of that container will be terminated automatically.
And if there are no protesters running Docker will terminate such container.
It is a first important outcome.
Secondly you have seen that with option best 18 basically does a combination of two different options
Dash I and the steam it you play into I'll explain you what those options mean you were able to get
access to bash shell inside all that will want to container and as soon as you are locked into the container
it will be still up and running and we were able to execute some basic commands and for example we have
at least that the contents of the being the folder inside the container but as soon as we exit that
from bash shell container was terminated and the reason for that is the same as before brought us best
was terminated there Well no a the process is running and docker has terminated such container that's
that simple.
Also here in this output you can see that there are two different images available locally or brutal
and hello world.
And if you want to create any container using already existing images in your local cache then there
was no need to pull those images from a remote registry Docker Hub.
Great.
Let's not get to our third example where we will use busy box image and let's do the same as we have
done with a wound too much.
And let's simply dial Docker Iran busy box Anto again unable to find emerging music box so locally and
now we are Wooleen good such image from a remote registry from Docker Hub pull complete digest is here
and straddles the lauded new AR image for busy box latest basically let me shortly explain you what
to call the latest here and here means each image has specific tag and this latest here and here is
actually tech if you don't specify a tech for specific image you want to use here we have specified
simply name of the image busy box Docker we'll append Dec latest latest is usually latest stable version
of each image but you are able to use different tags and the usually same you might you may have multiple
different texts and we will look at that a bit later for now please understand that this is simply tech
and if you don't specify a tech for you which you want to use then that latest will be added automatically
great we have tried to run busy box container and again we have returned back to our terminal and behavior
here is the same as we have observed when we are running a wound to image and if I enter Docker up the
now you'll see that there are no container currently you're on but if I'll enter Docker B S Dash 8 you'll
see that there are was busy box container that was exhausted in my case five minutes ago and the fourth
command that was executed was c h command c h is basically also shell same as was bash but you see here
that there was no path to slash bin folder we have simply executed under the hood c h command great
let's not try to enter this container using dash I.D. option let me clear a terminal and run container
like so dock around this idea busy box in such case we will not again pull busy box image from remote
registry because it's already present not a local cash okay enter and we are now inside of that busy
box container and if I'll enter Dr. Pierce now in a nasal tap Dr. P S you'll see that Dow was busy box
container we're running right now and it is up for the seconds.
Okay.
Let's now use here less comment and see whereas our such comment is available inside of this container
alas.
And yes this commander's here but you see much shorter list of folders than we have seen in a boon to
container.
Let's have a look at the contents of the bin folder.
L s been and you'll see such list of executable here inside of the been folder.
And for example if you'll try to find the echo command it will be present here as well.
And you are able to use it of course.
Echo hello from busy box.
And you'll see hello from busy box here in this cell.
Also this doorway one more comment for example uptime you'll see that this command should be present
here on this list looking scroll a bit up and here was this command uptime less press enter and you'll
see uptime of this Linux container it is up around six minutes.
Also it has the same amount as K D I R you are able to create your folder for example let's create my
folder let's send it to my folder and here let's create the new file Deitch file do the next deal and
you'll see that in your file was created it means that this container has really a nice set of a deal
it is that you are able to use out of the box.
Also if you want you're able to install additional duties if you need to do so but what is actually
a busy box busy box is a really small distribution that has a really large set of utilities but also
deal is a custom and they are actually really small in size and usually this busy box installation is
packaged as a single executable file and let's have a look at the size of this busy box image in comparison
to a wound to image let's exit this container like so and if I'll list the containers that are running
right now you'll see that there are no containers let me do that Docker.
Yes yes there are no containers currently running because we have eggs that the sea age brought us and
container was automatically terminated and if I'll have a look at the history you'll see that there
was a busy box container that was exited 19 seconds ago great I wanted to show you the size of visible
container let's clear a terminal and least local images Docker images and you'll see a wound to busy
books and hello rolled here on the list and now have a look at the size of visa box image it is a bit
larger than one megabyte in comparison to a wound to its size this size is really really insanely small
there's the smallest the Linux container available it has again built instead of facilities and you
are able to use them but it is much much much more smaller then or boom to image great that's how you're
able to create the containers using busy box image.
Let's now proceed.
And next let me show you one more image that is based actually on a busy box image and that image is
called Alpine.
Let's get a look at it next.
Bye bye.