Containers (Docker) en CI/CD werken krachtig samen — containers bieden consistente build-/testomgevingen en onveranderbare deployment-artefacten (images), terwijl CI/CD-pipelines deze images bouwen, testen en implementeren. Containers lossen belangrijke consistentieproblemen in het deliveryproces op.
Containers als consistente build-/testomgevingen
→ 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)
