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 →
- Write a Dockerfile (multi-stage, non-root, pinned base, healthcheck).
- Compose for local dependencies.
- CI: lint, build, test, scan, SBOM, sign, push by SHA.
- Promote the same digest through environments via GitOps.
- Run with limits, probes, centralized logs and metrics.
- Plan rollbacks, backups and patch cadence.
Why → Every step reduces a class of production failures.
Interview tip → Structure the answer as build, ship, run.
More on CI/CD and production rollouts
Design a GitHub Actions workflow that builds, scans and pushes an image.IntermediateZero-downtime deploy on a single Docker host.AdvancedDeploy via GitOps with image digests.IntermediateCanary a new image on a Swarm service.AdvancedDocker build is flaky in CI due to network errors on package installs.IntermediateRun database migrations in the deploy flow of containerized apps.Intermediate