هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
$ مستخدم عادي# بصلاحية root (أو مع sudo)
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.
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.
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.
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 buildmakes an image from a Dockerfile.docker runstarts a container from that image.docker pslists running containers.docker logsshows their output.docker stopends a container.docker rmdeletes it.docker pushsends an image to a registry.docker pullgets 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.
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.
Key terms
The words of this course in one table. Learn them before the quiz or exam.
| Term | Meaning |
|---|---|
| Bare metal | A physical server with no host OS under the hypervisor. |
| Base image | The starting image that you add layers to. |
| Build | The step that turns a Dockerfile into an image. |
| Container | A light package of an app and its runtime environment. |
| Container image | The stored package that a container starts from. |
| Docker | A platform to build, ship, and run containers. |
| Docker image | A standard, read-only package for a container. |
| Dockerfile | A text file with the steps to build an image. |
| Guest OS | The operating system inside a VM. |
| Host operating system | The OS of the physical machine. |
| Host | The physical machine that runs VMs. |
| Hypervisor | Software that creates and runs VMs. |
| Image | The stored package that a container starts from. |
| Immutable | Cannot be changed after it is made. |
| Isolation | Keeping apps apart, so one cannot change another. |
| Layer | One step in an image; layers stack to make the filesystem. |
| Microservice | A small service that does one job. |
| Portability | The same package runs in many places. |
| Registry | A store for images that teams can share. |
| Runtime environment | The libraries and settings an app needs to run. |
| Runtime | The time when a container is running. |
| Scalability | The ability to run more copies when load grows. |
| Server virtualization | Splitting one server into many VMs. |
| Tag | A name for one image version, like 1.2. |
| Type 1 hypervisor | A hypervisor that runs right on the hardware. |
| Type 2 hypervisor | A hypervisor that runs on a normal OS. |
| Virtual machine (VM) | A virtual computer with its own operating system. |
| Virtualization | Making many virtual resources from one physical resource. |
| VM | A virtual computer with its own operating system. |
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.
Useful links
Official documentation and pages for this course.
- Docker docs — images, containers, and commands.
- Dockerfile reference — every build instruction.
- Docker Hub — a public registry of images.
- Play with Docker — a free lab in the browser.
- Kubernetes docs — the next step after containers.
- Docker Compose — running many containers together.