Interview Prep/CI/CD/Builds, Artifacts, Nexus, SonarQube and Testing

You need to publish a Docker image to Nexus and also keep a copy of base images internally.

IntermediateScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer

Situation read → Private registry plus proxy.

What I'd do →

  1. Create a Docker hosted repo for your images and a Docker proxy repo for Docker Hub, grouped under one endpoint.
  2. Configure CI to pull base images from the proxy; set FROM nexus.example.com/library/node:22.
  3. Add cleanup policies to expire old tags and run the compact blob store task.

Why → This avoids Docker Hub rate limits and gives control over upstream images.

Interview tip → Cleanup policies stop storage from growing without bound.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Builds, Artifacts, Nexus, SonarQube and Testing