48 / 55 · 19 Linux & Command Line · Docker Basics for QA← prev⊞ allnext →☰ Read as one page
6.8Hands-On Exercise
- Run a PostgreSQL container and connect to it with
psql(viadocker exec) - Create a
docker-compose.test.ymlwith an app, database, and Redis - Start the environment, run tests, and tear it down
- Intentionally break a service and use
docker logsto diagnose the issue - Check Docker disk usage on your machine and clean up unused resources
- Add a healthcheck to your database service and verify it works with
docker compose ps