跳到主要内容
学院
初级 代码街区

Docker

用容器打包并交付一切。

Docker packs your app and everything it needs into one standard package, an image, so it runs the same way on your laptop, in CI and on the production server. Teams use it to run websites, APIs, databases and caches as separate containers, and to pin production images by digest.

This track starts with your first docker run and takes you through fast, small Dockerfiles, multi-stage builds, Compose with networks and volumes, secrets done right, releases pinned by digest, and debugging in production. At the end you will see what Kubernetes adds on top.

课时
18
时长
2 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Explain images, containers and layers, and run any service with docker run
  • Write fast, cache-friendly Dockerfiles and small multi-stage images for Go and Node.js
  • Run a full stack (website, API and PostgreSQL) from one compose.yaml
  • Keep data, configuration and secrets safe with volumes, environment variables and secret files
  • Ship images pinned by digest, then read logs, set limits and debug containers in production
  • Know what Kubernetes adds, and when one Compose host is enough

学习旅程

  1. 1
    第 1 单元

    Containers from zero

    What Docker solves, images versus containers, and the commands you will type every day.

    0 / 3
  2. 2
    第 2 单元

    Building images

    Write Dockerfiles, understand layers, and make rebuilds take seconds.

    0 / 3
  3. 3
    第 3 单元

    Production-ready images

    Multi-stage builds, distroless and scratch, non-root users, healthchecks and scanning.

    0 / 3
  4. 4
    第 4 单元

    One stack, one command

    Describe the website, the API and PostgreSQL in one compose.yaml, with networks and volumes.

    0 / 3
  5. 5
    第 5 单元

    Config, secrets and releases

    Pass configuration safely, never bake secrets into images, and release images pinned by digest.

    0 / 3
  6. 6
    第 6 单元

    Running in production

    Logs, resource limits and debugging, then what Kubernetes adds on top of containers.

    0 / 3

快速导航