Modern QA2026Hands-On Exercise — tiles
Log inJoin
48 / 55 · 19 Linux & Command Line · Docker Basics for QA← prev⊞ allnext →☰ Read as one page

6.8Hands-On Exercise

  1. Run a PostgreSQL container and connect to it with psql (via docker exec)
  2. Create a docker-compose.test.yml with an app, database, and Redis
  3. Start the environment, run tests, and tear it down
  4. Intentionally break a service and use docker logs to diagnose the issue
  5. Check Docker disk usage on your machine and clean up unused resources
  6. Add a healthcheck to your database service and verify it works with docker compose ps