This video dives into logging options in Docker-based environments, covering the core "docker logs" command and all the options available for the command.
We also look at Docker log drivers, with a focus on the default 'json-file' driver, as well as how to configure the logging driver and options via Docker's daemon.json file.
Finally, we also look at high-level logging strategies for Docker services/apps, exploring the pros & cons of different strategies.
► RELATED GUIDES
Logging in Docker - Everything You Need to Know
https://betterstack.com/community/guides/logging/how-to-start-logging-with-docker/
How to View and Configure NGINX Access & Error Logs https://betterstack.com/community/guides/logging/how-to-view-and-configure-nginx-access-and-error-logs/
► HACKING SCALE NEWSLETTER
https://newsletter.betterstack.com/
► READ MORE
More about Better Stack: https://betterstack.com/
Community pages: https://betterstack.com/community/
► STAY TUNED
GitHub: https://github.com/BetterStackHQ
Twitter: https://twitter.com/betterstackhq
LinkedIn: https://www.linkedin.com/company/betterstack
Instagram: https://www.instagram.com/betterstackhq/
TikTok: https://www.tiktok.com/@betterstack
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:49 Pulling nginx docker image
04:23 Viewing nginx logs in docker container with docker logs command
09:15 docker logs options
12:57 Docker Log Drivers
16:36 Configuring log options in Docker with daemon.json
20:56 Logging strategies in Docker
#logging #docker