Containers (Docker) และ CI/CD ทำงานร่วมกันได้อย่างทรงพลัง — container ให้ build/test environment ที่สม่ำเสมอ และ deployment artifact ที่ immutable (image) ขณะที่ CI/CD pipeline build, test และ deploy image เหล่านั้น container แก้ปัญหาความสม่ำเสมอที่สำคัญในกระบวนการส่งมอบ
containers ในฐานะ build/test environment ที่สม่ำเสมอ
→ 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)
