Container (Docker) dan CI/CD berfungsi dengan berkuasa bersama-sama — container menyediakan build/test environment yang konsisten dan artifact deployment yang immutable (image), manakala pipeline CI/CD membina, menguji, dan men-deploy image tersebut. Container menyelesaikan masalah konsistensi utama dalam proses penyampaian.
Container sebagai build/test environment yang konsisten
→ 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)
