Interview Prep/Docker/CI/CD and production rollouts

Canary a new image on a Swarm service.

AdvancedScenarioCI/CD and production rollouts
Answer

Situation read → Gradual rollout.

What I'd do →

docker service update --image reg/app:1.9.0 \
  --update-parallelism 1 --update-delay 30s \
  --update-failure-action rollback --update-monitor 60s app
docker service rollback app

Why → Rolls task by task and rolls back automatically on failed health.

Interview tip → For weighted traffic splitting you need a service mesh or Traefik weighted services.

All Docker questions Roadmap: Docker & containers

More on CI/CD and production rollouts