JuniorCI/CD & DevOps for QA
What is Docker and how is it used in testing?
- Docker
- containers
- test environments
Answer it first, then compare. Nothing here is saved or scored.
Model answer
Docker packages an application and its dependencies into a lightweight, portable container that runs consistently everywhere. For testing: (1) Consistent test environments, same container runs locally and in CI. (2) Dependency isolation - run a Postgres, Redis, or Elasticsearch container for tests without installing them. (3) Parallelism - spin up multiple isolated containers for parallel test execution. (4) Clean state - destroy and recreate containers for fresh test environments. Docker Compose orchestrates multi-container setups.
What interviewers listen for
- Pipeline shapeYou design stages by failure cost and runtime budget, not by tool feature lists.
- Parallelisation craftYou can shard a real suite and explain the state-isolation choices you made.
- Quality gatesYou know which checks block merge, which warn, and why those defaults are correct.
- Shift-left fluencyYou talk about ownership transfer, not just earlier execution.