Share feedback
Answers are generated based on the documentation.

イメージのビルド

コンテナーイメージのビルドは、技術的でもありアートでもあります。 イメージ作りにあたっては常にサイズを小さく、しかもセキュリティ対応をより適切に保ちたいと思うはずです。 とは言っても、そこにはキャッシュの影響といった潜在的なトレードオフのバランスを考慮する必要もあります。 本シリーズでは Docker イメージの謎に迫ります。 そしてビルド方法やベストプラクティスについて学びます。
Skill level 初心者向け
Time to complete 25 分
Prerequisites なし

本シリーズについて

本番環境向けの Docker イメージとして、無駄のない効率的なものを作り出す方法について学びます。 特にオーバーヘッドを最小限に抑え、本番環境へのデプロイを強化するものを目指します。

ここから学んでいくこと

  • イメージレイヤーの理解
  • Dockerfile の記述方法
  • イメージのビルド、タグづけ、公開方法
  • ビルドキャッシュの利用
  • マルチステージビルド

モジュール

  1. イメージレイヤーの理解

    This concept page will teach you about the layers of container image.

  2. Dockerfile の記述

    This concept page will teach you how to create image using Dockerfile.

  3. イメージのビルド、タグづけ、公開

    This concept page will teach you how to build, tag, and publish an image to Docker Hub or any other registry

  4. ビルドキャッシュの利用

    This concept page will teach you about the build cache, what changes invalidate the cache and how to effectively use the build cache.

  5. マルチステージビルド

    This concept page will teach you about the purpose of the multi-stage build and its benefits