Container Server

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
21 hours 25 minutes
Difficulty
Intermediate
CEU/CPE
21
Video Transcription
00:00
>> Hey there Cybrarians.
00:00
Welcome back to the Linux Plus course here at Cybrary.
00:00
I'm your instructor Rob Goelz.
00:00
In today's lesson, we're going to be
00:00
discussing containers and container servers.
00:00
Upon completion of this lesson,
00:00
you're going to be able to understand
00:00
why containers had been
00:00
popular and become an important piece
00:00
of system administration with Linux.
00:00
We'll talk a little bit about
00:00
the container benefits and then we're going
00:00
>> to describe how containers operate on top of Linux.
00:00
>> We touched on virtual machines and
00:00
containers back in module five.
00:00
The VM runs within operating system.
00:00
That would be a type-2 hypervisor
00:00
running on top of an OS or distribution.
00:00
Or it could be running on a type-1
00:00
hypervisor where it's really close
00:00
to the metal and it just has
00:00
a small kernel then interacts with.
00:00
But regardless of what you're
00:00
doing when you're talking about a VM,
00:00
it's going to have virtual components
00:00
such as CPU and RAM.
00:00
Now container acts as a self-contained system and it
00:00
doesn't need those dedicated
00:00
virtual components like CPU and RAM.
00:00
Most of the time the container only
00:00
requires necessary application files,
00:00
library files, or other binaries that it
00:00
needs to run the application
00:00
that lives inside a container.
00:00
The only thing containers do require though,
00:00
is a defined network configuration.
00:00
Now this is all well and good,
00:00
you might still be asking why?
00:00
Why are we using containers?
00:00
Containers do have a few major selling points?
00:00
The first thing is that containers
00:00
offer what's called a reproducible environments.
00:00
No matter where you run the container,
00:00
it's going to be the same. You could
00:00
>> develop inside of a container on your laptop or
00:00
>> desktop and then deploy it on a server or the Cloud.
00:00
It's going to run exactly the same.
00:00
If you're supporting developers,
00:00
you're going to likely end up supporting containers
00:00
because they're going to want that reproducibility.
00:00
They're going to want assurances that they
00:00
could do something on their system and
00:00
have it at the exact same in
00:00
production as it did on their laptop.
00:00
Also there has been a major shift
00:00
to using container orchestration.
00:00
When you have container orchestration using something
00:00
like Docker Swarm or Kubernetes,
00:00
containers become more cattle than pets.
00:00
When we have a server or VM, we have a
00:00
>> tendency to correlate and treat it like a pet.
00:00
>> If it has a problem,
00:00
it dies, we mark it failed and troubleshoot it.
00:00
We may have to rebuild the whole thing from scratch.
00:00
With a container and there
00:00
being a reproducible environment,
00:00
we can just start a new one automatically.
00:00
It's cattle, we don't care. We don't name the cattle.
00:00
If it dies off, we get another
00:00
>> one and we're good to go.
00:00
>> Now containers run on top of Linux systems kernel.
00:00
All containers are essentially just processes that
00:00
share the kernel space
00:00
and this is why they're reproducible.
00:00
Kernel space is where
00:00
the kernel interacts with the system hardware.
00:00
That space is generally the
00:00
same no matter what distribution or
00:00
>> OS you're running on.
00:00
>> It can be abstracted and shared.
00:00
The application that's running in
00:00
a container is running in userspace.
00:00
Userspace is where code is
00:00
>> required to run user programs.
00:00
>> This is where the user program code
00:00
lives and the support for that, so the container
00:00
>> is only need the components required for
00:00
>> the userspace programs like the libraries and
00:00
the application packages and
00:00
the binaries that we talked about.
00:00
They could share the underlying kernel consistently
00:00
no matter which system or distribution they're on.
00:00
In this lesson, we covered why containers have become
00:00
important and therefore covered on Linux Plus VM.
00:00
We talked about the benefits of using containers,
00:00
and we also talked about how containers work in Linux.
00:00
Thanks so much for being here and I look
00:00
forward to seeing you in the next lesson.
Up Next