text
stringlengths
7
369
[2740.56 --> 2741.24] to do this,
[2741.80 --> 2743.20] but I think Docker Compose
[2743.20 --> 2744.54] is probably the best way
[2744.54 --> 2745.22] for a new beginner,
[2745.22 --> 2746.98] is when you launch
[2746.98 --> 2748.02] an app with Docker Compose,
[2748.06 --> 2749.46] you can do Docker Compose up
[2749.46 --> 2751.42] and if you don't tell it
[2751.42 --> 2751.84] to otherwise,
[2752.04 --> 2753.02] it'll give you the output
[2753.02 --> 2753.64] on the screen
[2753.64 --> 2754.48] and you can sit there
[2754.48 --> 2755.60] and watch the log output.
[2755.80 --> 2756.20] Oh, that actually
[2756.20 --> 2756.98] sounds really interesting.
[2757.10 --> 2757.86] Yeah, it's logs.
[2757.96 --> 2759.28] Really, the key to your answer
[2759.28 --> 2760.08] is you want logs.
[2760.36 --> 2761.74] So however you have it,
[2761.84 --> 2762.76] whatever tool you're using,
[2762.84 --> 2763.34] you just want to be able
[2763.34 --> 2763.98] to get to the logs.
[2764.04 --> 2764.80] That's really what I wanted
[2764.80 --> 2766.12] and I had no idea
[2766.12 --> 2766.76] how to get to it.
[2766.82 --> 2768.30] So I just kind of
[2768.30 --> 2769.00] nuked the whole thing
[2769.00 --> 2771.56] and yet that gave me
[2771.56 --> 2772.42] exactly what I was looking for.
[2772.52 --> 2772.98] So I don't think
[2772.98 --> 2774.02] that'll be the case every time,
[2774.02 --> 2775.22] but in this case,
[2775.26 --> 2775.76] it worked nicely.
[2776.28 --> 2777.26] There is an alias
[2777.26 --> 2777.98] that I use
[2777.98 --> 2779.42] which I created
[2779.42 --> 2780.48] a long, long time ago
[2780.48 --> 2781.40] called Detail.
[2781.64 --> 2782.04] Literally,
[2782.26 --> 2782.98] D-tail
[2782.98 --> 2783.96] slammed together
[2783.96 --> 2784.62] as one word.
[2785.74 --> 2786.46] And for me,
[2786.50 --> 2786.94] what that does
[2786.94 --> 2787.86] is it prints out
[2787.86 --> 2789.52] the last 50 lines.
[2789.64 --> 2791.22] It tails the last 50 lines
[2791.22 --> 2792.02] of a container's
[2792.02 --> 2792.72] standard output.
[2793.46 --> 2794.02] Oh, that's nice.
[2794.30 --> 2794.72] So one thing
[2794.72 --> 2795.44] you'll run into
[2795.44 --> 2796.70] with containers
[2796.70 --> 2798.30] is that not every app
[2798.30 --> 2799.78] logs the standard out
[2799.78 --> 2800.46] by default.
[2800.46 --> 2801.44] And so sometimes
[2801.44 --> 2803.16] you'll look at the logs
[2803.16 --> 2803.82] for that container
[2803.82 --> 2804.78] and you won't see
[2804.78 --> 2806.16] anything in the logs.
[2806.52 --> 2807.68] So you might need to,
[2807.78 --> 2808.84] for that particular application,
[2809.20 --> 2810.14] enable things like
[2810.14 --> 2811.58] debug or error logging
[2811.58 --> 2813.34] or higher modes,
[2813.46 --> 2813.70] sorry,
[2813.76 --> 2814.34] than error logging,
[2814.52 --> 2814.76] you know,
[2814.82 --> 2815.76] more than warning
[2815.76 --> 2816.40] or info,
[2816.50 --> 2817.18] those kind of things.
[2817.18 --> 2817.92] You need to turn it up
[2817.92 --> 2818.52] to the highest
[2818.52 --> 2820.10] chattiness that it has
[2820.10 --> 2820.64] in the logs.
[2821.42 --> 2822.28] Some containers,
[2822.40 --> 2823.32] that will drive your potty.
[2823.44 --> 2824.10] Other containers,
[2824.24 --> 2825.38] it's the bare minimum.
[2826.58 --> 2827.52] Traffic's a good example
[2827.52 --> 2828.70] of where they don't
[2828.70 --> 2829.58] put enough stuff
[2829.58 --> 2830.56] in the logs
[2830.56 --> 2831.44] that they should.
[2832.86 --> 2833.64] We've mentioned it
[2833.64 --> 2834.38] on the show before,
[2834.46 --> 2835.06] but there's a tool
[2835.06 --> 2835.74] called Dozzle,
[2835.96 --> 2836.94] which will put your
[2836.94 --> 2837.96] containers logs
[2837.96 --> 2839.22] into a browser
[2839.22 --> 2840.32] and then you can search
[2840.32 --> 2841.76] through the containers
[2841.76 --> 2843.06] running on a specific box
[2843.06 --> 2843.86] and look at the logs
[2843.86 --> 2844.40] in a browser
[2844.40 --> 2845.98] if you want to do it
[2845.98 --> 2846.62] that way as well.
[2847.86 --> 2848.82] Well, before we go,