コンテナ(Docker)とCI/CDは強力に連携します。コンテナは一貫したビルド/テスト環境と不変のデプロイメント成果物(イメージ)を提供し、CI/CDパイプラインはそれらのイメージをビルド、テスト、デプロイします。コンテナは配信プロセスの主要な一貫性の問題を解決します。
一貫したビルド/テスト環境としてのコンテナ
→ Run pipeline jobs INSIDE containers → the build/test environment is CONSISTENT and
reproducible (same tools/versions every time, locally and in CI)
→ No "works on my machine" / "works in CI but not locally" environment differences
→ Easy to define the exact environment (a container image with the needed tools)
