Interview Prep/Docker/CI/CD and production rollouts

Test Dockerfile changes safely before merging.

BeginnerScenarioCI/CD and production rollouts
Answer

Situation read → A broken Dockerfile blocks everyone.

What I'd do → PR pipeline: hadolint Dockerfile, docker buildx build --check, build for all target platforms without pushing, run container structure tests (container-structure-test) or a smoke test hitting /healthz.

Why → Catches issues early.

Interview tip → docker build --check validates against Dockerfile build checks.

All Docker questions Roadmap: Docker & containers

More on CI/CD and production rollouts