总结

Containerization and Virtualization Concepts

Julia Ostheimer

Freelance AI Consultant

课程目标回顾

  • 第 1 章
    • 定义虚拟化
    • 定义容器化
    • 比较容器化与虚拟化
  • 第 2 章
    • 用 Docker 解释容器化
    • 定义容器编排
    • 用 Kubernetes 解释容器编排
    • Docker 实操
Containerization and Virtualization Concepts

回顾:虚拟化 vs. 容器化

虚拟化

  • 创建计算资源的虚拟版本
  • 全虚拟化
  • 虚拟机:在另一台计算机中的模拟计算机系统

容器化

  • 将应用与依赖打包到隔离环境
  • 操作系统级虚拟化
  • 容器:隔离的应用运行环境
Containerization and Virtualization Concepts

Docker 架构

Docker 架构概览

1 图标来自 Icons8.com
Containerization and Virtualization Concepts

Kubernetes 架构

Kubernetes 架构概览

1 图标来自 Icons8.com
Containerization and Virtualization Concepts

Docker 指令与命令

Docker 指令 说明
FROM 定义所基于的镜像。
COPY 将文件或目录复制到容器中。
RUN 在容器内运行命令。
ENTRYPOINT 定义容器的默认行为。

 

Docker 命令 说明
docker build <context> 基于 Dockerfile 构建镜像。
docker run <name_of_image> 基于镜像运行容器。
Containerization and Virtualization Concepts

想学更多?

  • 了解云计算

DataCamp 课程:Understanding Cloud Computing

  • 使用命令行(CLI)

DataCamp 课程:Introduction to Shell

Containerization and Virtualization Concepts

想学更多?

  • 继续学习 Docker 与 Kubernetes!
    1. DONE容器化与虚拟化入门
    2. UPCOMINGDocker 入门
    3. Docker 进阶
    4. Kubernetes 入门
Containerization and Virtualization Concepts

恭喜!

Containerization and Virtualization Concepts

Preparing Video For Download...