Geavanceerd
Zoeken inSamenvattingen
Zo zoek je
  • Woorden vinden lestitels, tekst en code. Filter op soort (gidsen, cursussen, programma's, boeken) of blijf in dit boek.
  • book:rhcsa en ch:8 maken de zoektocht kleiner; #code vindt een woord alleen in commando's van de lessen.
  • "twee woorden" vindt precies die zin.
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken
Probeer:

Cursus 5Naam in de cursus: Manara DevOps 5 - Virtualization and Containerization

Virtualization and Containerization

Course 5 of 6 in the DevOps path on Manara. The concept of virtualization.

Notitie

My result — Tasks in this course: all done (11/11); Module review quizzes: 100% (each module); Path progress: all 53 tasks of the 6 courses done.

Course page: Manara

  • 9 Lessen
  • 1 Commando's
  • 2 Labs

Dit deel is nog niet vertaald. Je ziet de Engelse tekst.

$ als gewone gebruiker# als root (of met sudo)

5.1

The Concept of Virtualization

Virtualization turns one physical machine into many virtual machines.

  • A virtual machine (VM) is a computer inside a computer.
  • A hypervisor is the software that creates and runs VMs.
  • VMs share the CPU, memory, disk, and network of the host.
  • Virtualization uses hardware better and costs less.
  • Types include server, storage, and network virtualization.
  • Type 1 hypervisors run on bare metal.
  • Type 2 hypervisors run on a normal operating system.

In more detail

  • Before virtualization, one server often ran one app. Much power was wasted.
  • The hypervisor splits the hardware and gives each VM a safe slice.
  • Each VM has its own operating system. It is heavy, but well isolated.
  • Type 1 is fast and common in data centers. Examples are ESXi and Hyper-V.
  • Type 2 is easy to try on a laptop. Examples are VirtualBox and VMware Workstation.
  • Server virtualization is the most common type. Storage and network virtualization split other resources.
  • A VM can move to another host. This helps with repair and balance.
  • Containers came later. They are lighter, but they are not VMs.

5.2

Introduction to Containers

A container packs an app with its runtime environment.

  • The same container runs the same way in dev, test, and production.
  • Containers are light, because they share the host operating system.
  • They start fast, so scaling up is quick.
  • Containers make development faster.
  • They help Dev and Ops work with the same package.
  • They add a layer of security through isolation.

In more detail

  • The image holds the app, libraries, and settings.
  • The container is a running copy of that image.
  • The host needs a container engine to run it. Docker is the common engine.
  • Because the environment travels with the app, setup is short.
  • Dev and Ops use the same package, so the handoff is clear.
  • Isolation limits what a container can touch.
  • A container is not a small VM. It has no full operating system inside.
  • Module 03 shows how to build these images with Docker.

5.3

Docker Fundamentals

Docker is a platform to build, ship, and run containers.

  • A Docker image is a standard package with files, libraries, and settings.
  • Images are immutable. You do not edit an image. You build a new one.
  • An image is made of layers. Each layer adds a change.
  • Layers are shared and reused. Builds get faster and use less disk.
  • Many containers can share one base image and stay isolated.
  • A Dockerfile is a text file that builds an image step by step.
  • Common steps: base image, workdir, copy, install, and command.
  • The module has an intro video with no text.

In more detail

  • Build the app on top of a base image, like a Node.js image.
  • Set the working folder, then copy the app files into the image.
  • Install the dependencies, then set the command that starts the app.
  • The usual words are FROM, WORKDIR, COPY, RUN, and CMD.
  • Each instruction makes a layer. Order matters for the cache.
  • Put the files that change least at the top, so Docker reuses more layers.
  • Many containers can start from the same image. Each one keeps its own changes.
  • The video task shows Docker on screen. It has no text.

5.4

Docker Crash Course

This module is one video. The course gives no text for it.

  • The title points to a full, hands-on Docker demo.
  • It should repeat the module 03 ideas: images, layers, and containers.
  • A Docker image is built from a Dockerfile.
  • A container is a running copy of an image.
  • The video is a chance to watch the steps in order.

In more detail

  • The video has no transcript. The steps below are general Docker knowledge.
  • docker build makes an image from a Dockerfile.
  • docker run starts a container from that image.
  • docker ps lists running containers. docker logs shows their output.
  • docker stop ends a container. docker rm deletes it.
  • docker push sends an image to a registry. docker pull gets it back.
  • Use a version tag, not only latest, so you can go back.
  • Watch the video, write your own steps, and compare them with this list.

5.5

Virtualization and Containerization Quiz

This module is one quiz. It has no reading or video.

  • The quiz checks the virtualization words: VM, hypervisor, and host.
  • It checks the difference between a VM and a container.
  • It checks Docker images, layers, and Dockerfiles.
  • It checks the build and run steps.
  • A quiz shows what you still need to review.

In more detail

  • Review the two hypervisor types and their use cases.
  • Review when to use a VM and when to use a container.
  • Review the image rules: immutable, layered, and reusable.
  • Review the Dockerfile steps: base, workdir, copy, install, and command.
  • Review the difference between an image and a container.
  • Say each meaning out loud in one short sentence.
  • Use lesson files 01 to 04 to prepare.

5.6

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
Bare metalA physical server with no host OS under the hypervisor.
Base imageThe starting image that you add layers to.
BuildThe step that turns a Dockerfile into an image.
ContainerA light package of an app and its runtime environment.
Container imageThe stored package that a container starts from.
DockerA platform to build, ship, and run containers.
Docker imageA standard, read-only package for a container.
DockerfileA text file with the steps to build an image.
Guest OSThe operating system inside a VM.
Host operating systemThe OS of the physical machine.
HostThe physical machine that runs VMs.
HypervisorSoftware that creates and runs VMs.
ImageThe stored package that a container starts from.
ImmutableCannot be changed after it is made.
IsolationKeeping apps apart, so one cannot change another.
LayerOne step in an image; layers stack to make the filesystem.
MicroserviceA small service that does one job.
PortabilityThe same package runs in many places.
RegistryA store for images that teams can share.
Runtime environmentThe libraries and settings an app needs to run.
RuntimeThe time when a container is running.
ScalabilityThe ability to run more copies when load grows.
Server virtualizationSplitting one server into many VMs.
TagA name for one image version, like 1.2.
Type 1 hypervisorA hypervisor that runs right on the hardware.
Type 2 hypervisorA hypervisor that runs on a normal OS.
Virtual machine (VM)A virtual computer with its own operating system.
VirtualizationMaking many virtual resources from one physical resource.
VMA virtual computer with its own operating system.

5.7

Check yourself

Answer each question first, then open it to check the answer.

1What does a hypervisor do?

It creates and runs many VMs on one physical machine.

2What is the difference between Type 1 and Type 2?

Type 1 runs on bare metal. Type 2 runs on a normal OS.

3Why do companies use virtualization?

To use hardware better, save money, and manage systems more easily.

4What does a container carry with the app?

Its runtime environment: libraries and settings.

5Why do containers start faster than VMs?

They share the host operating system, so they carry no full OS.

6What problem do containers solve for Dev and Ops?

Both teams use the same package, so "works on my machine" stops.

7Why is a Docker image immutable?

So the same image always gives the same container. A change makes a new image.

8What does a Dockerfile do?

It stores the build steps, so a machine can make the image.

9Why do layers make builds faster?

Docker reuses layers that did not change, so it does less work.

10Which command makes an image?
11Which command starts a container?
12Why do we use a tag and not only latest?

A tag marks one version, so you can go back to it.

13Which lesson compares VMs and containers?

Module 01, The Concept of Virtualization.

14What is the difference between an image and a container?

An image is the stored package. A container is a running copy of it.

15What are the two hypervisor types?

Type 1 on bare metal, and Type 2 on a normal OS.

Oefenen

Alle commando's in dit hoofdstuk