Skip to main content
Yes, docker-agent-tail needs Docker daemon to be running and accessible. It connects to the Docker socket to list and stream container logs.
Add your user to the docker group:
sudo usermod -aG docker $USER
Then log out and back in for the change to take effect.
Yes! Use the --compose flag to automatically discover and tail all services in a docker-compose.yml file.
docker-agent-tail works with json-file and journald log drivers. Other drivers won’t support real-time streaming.
Yes, use --exclude to skip lines entirely and --mute to save matching lines to a separate .muted.log file.
Yes, use --output to specify a directory. This creates combined.log and per-container logs.
--exclude completely skips matching lines. --mute hides them from normal output but saves them to a separate file for later analysis.
Yes, use the --json flag to output newline-delimited JSON that’s easy to parse and automate.
Use --since with RFC3339 format to only show logs since a specific time:
docker-agent-tail --all --since "2026-03-04T10:00:00Z"
Containers with TTY attached may output raw streams. docker-agent-tail detects this and handles it appropriately.
Yes, pass a glob pattern as an argument to match container names. For example: web-* matches all containers starting with “web-”.
Docker doesn’t allow duplicate container names, so this shouldn’t happen. Each container must have a unique name.
Yes! Set the DOCKER_HOST environment variable to connect to a remote Docker daemon.
That depends on your containers’ verbosity and how long you run docker-agent-tail. Use --exclude and --mute to reduce file size.
No. docker-agent-tail reads from Docker’s log buffers and doesn’t interfere with container execution.
Press Ctrl+C in the terminal. This cleanly closes all log streams and exits gracefully.
Yes! Use --output to save logs as artifacts. Use --no-color for cleaner log files when piping to other tools.

Still Have Questions?

Check out the CLI reference for complete documentation, or visit the GitHub repository to file an issue.