Containere (Docker) og CI/CD arbejder kraftfuldt sammen — containere leverer konsistente build-/test-miljøer og uforanderlige deployment-artifacts (images), mens CI/CD-pipelines bygger, tester og deployer disse images. Containere løser vigtige konsistens-problemer i leveringsprocessen.
Containere som konsistente build-/test-miljøer
→ 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)
