Interview Prep/Docker/CI/CD and production rollouts

Walk me through taking a container app from laptop to production at a high level.

BeginnerScenarioCI/CD and production rollouts
Answer

Situation read → Open-ended end-to-end question.

What I'd do →

  1. Write a Dockerfile (multi-stage, non-root, pinned base, healthcheck).
  2. Compose for local dependencies.
  3. CI: lint, build, test, scan, SBOM, sign, push by SHA.
  4. Promote the same digest through environments via GitOps.
  5. Run with limits, probes, centralized logs and metrics.
  6. Plan rollbacks, backups and patch cadence.

Why → Every step reduces a class of production failures.

Interview tip → Structure the answer as build, ship, run.

All Docker questions Roadmap: Docker & containers

More on CI/CD and production rollouts