Back to Browse

Docker Logging - "docker logs" Command | Log Drivers | Logging Strategies

5.5K views
Jan 22, 2024
25:30

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

Download

1 formats

Video Formats

360pmp446.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Docker Logging - "docker logs" Command | Log Drivers | Logging Strategies | NatokHD