Shows only recent log lines for a service.
Section: Logs, Exec, and Shell Access
Tail logs for one service
bash
bash
docker compose logs --tail=100 webExplanation
Keeps output focused during triage.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logs, Exec, and Shell Access
Open shell in running service
Executes a shell inside an already-running service container.
Open bash in running service
Runs Bash inside the running service container.
Run one-off command
Starts a fresh container for a one-off task and removes it after exit.
Show running processes
Displays processes running inside service containers.