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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
If you want to learn Docker in one video
And if you want to become a devops engineer
You have come to the right channel because today's
In this video we are going to talk about Docker
In one shot where in one video now this
The video will be very long all the time
You can find the stamps in the description
You can find all the notes in the description.
In this video we will go into introduction
To Docker, we're going to see why we use Docker.
What happens, where did Docker come from?
When did Docker come into existence and how is it being used now?
architecture are going to see that Docker when you
You will go to the interview if someone asks you
I asked you brother how Docker works, so you
Can you tell me how to install Docker setup?
Will also do it on AWS instance
We will also do it at your local level so that you get no
There will be no bill cost and you can do it well.
Learn what Docker images are
What are containers, what is networking?
There are advanced concepts like Docker
Volume Storage Docker Compose Docker
The registry will look at all these things.
Friends multi stage Docker builds which
Experience is asked for people
Monitoring is also covered in this video.
How to do all that logging in Docker
Things to watch for Docker's next
Step is Kuber Niti about that too
The introduction is going to be in this video.
If you have stopped till here in the video
Dude, take the projects in this video too.
Not one but two projects are going to happen
where we are a three tier
Build the application with Docker Compose
Deployed application to Nx and My
with the sequel
Deployed added this video is a quick video
Like it, don't subscribe to the channel
If you do, please subscribe to me immediately.
Tell us in the comments if you are ready for this.
Docker in One Shot Drop a Boom in the Chat
Let's get started first let's understand
What is this Docker, understand it like this that whenever
When I speak to you from a client let
I am the client, what does that mean? It's you.
You are an employee or a freelancer from Lets
You are a student and you have a
The client now has a laptop.
This is where you send a website to that client.
is deployed in which you have deployed that website
You made it very well, you made it perfectly
Nice you made that website but client
When asked for delivery of that website and
The client ran the website on their side.
I saw that she did not even leave and then you say
Hey this is working on my machine but it is
Not working on clients machine so this
The IT industry remains a classic example.
that brother it is running on my computer
I don't know why your computer isn't working.
Docker is a tool that lets you
It basically creates containers and
Applications run inside containers
Docker creates all those environments.
In which you did your development from the letters
You were on a Windows machine and your
The client was a Mac, he was on Mac.
The libraries on Apple's machine
There are requirements that will not be available on Mac.
So what does Docker do?
He makes it and gives it wherever
whatever required libraries are there
The required environment is that of that box
inside or reaches inside that container
and you ship this container
via image to the client and this image you
Can be run on basically any computer
This image will work great as will this
Bhaiya container image was running in the computer
I didn't understand this at all
Docker let me tell you what happens when
Also you talk about Docker Docker
The tool is an open source tool where
You can develop cool stuff anywhere.
You can run things, well, that's what you did.
So I told you it will work on any system.
Things developed anywhere exactly
That's what happens, now first of all understand that this Docker
Where did it come from? Docker was a dot.
There was a company called Cloud. Cloud and this
This problem in a company named Dot Cloud
I know it is working on my machine, not
working on your machine so they did that thing
Containerized Docker was born there
Then he revealed that thing publicly.
made available at a conference whose
The name was Paikan Paikan, in which it was publicly
It became available, this is about 2013 and 2017
CN CF Cloud Native Computing in
Foundation, this is a foundation there
Cloud Native Tools Are Basically Open Source
Through contributions are very cool
This thing has reached there and now it is very
Most people use it every
The organization uses Docker only, which I
I work in an organization there too.
Before Docker containers are used
All the organizations I have worked in
If you use Docker then read Docker
If it is very important for you then
History Civics Geography so Bhaiya Jaan
Lee Docker's that came in 2013 in 2017
Reached CNCF and then now everyone
Now let's understand that Docker is using
Why do people use you again virtually?
Sometimes we have to create such an environment
It happens that whatever runs on your computer
She is walking because she
There are some libraries in the computer.
There are versions, there are some tools and because of that
That thing is running on another computer.
Maybe that thing is not there and that is why you need a container
Or you would have to create a virtual environment.
Yes, and because of that virtual environment
That thing works on other computers as well.
So brother, is this Docker your virtual machine?
VM is like a virtual machine
What happens is you were given a piece of hardware
On that hardware you can create a virtual machine
You set it up and there you go
You can run Mac OS as well as Windows.
Yes, you can run anything, so can Docker.
Right, you can run anything but VM.
There's a huge difference between VM vs Docker
And there is a huge difference between Docker, let's understand
What happens is that it creates a new concept.
Virtualization is here
Versace
Containerization Virtualization
Containerization is virtualization.
In that your virtual machines or VMs can be used.
There is containerization in which your
Containers are used, which are also part of Docker.
There may be another Docker-like tool available.
Whose name is Pod Man Pod Man Ke Bhi
There is another tool called
Container D
Container D can also be his so
Both containers and virtual machines
What difference does it make? What difference does it make? I tell you
Let me tell you about virtual machines.
They use what is called
Hypervisor: So what does a hypervisor do?
is the hypervisor from your operating system
Space resources allocate everything
and run your operating system on top of it
Is your operating system mean Windows or
Yours or yours
So consider that I have this viz machine.
It is above me
Docker Engine What does Docker Engine do itself?
It does not have an operating system of the host.
Lets use the operating system
If this is my Windows and I
So what happens to this one that creates its own container?
It becomes very light weight.
It means that if you have
If you have 8GB of RAM, you can run one or two virtual machines.
You can drive comfortably before he runs out of rum.
It starts happening but if you have 8GB of RAM
So you can run multiple containers.
They are very light weight and hence very
This is an interesting thing, now let's look at it a little.
Let us see diagrammatically that brother
in virtualization and containerization
What are the differences diagrammatically?
Understand that this is your operating system.
which may be from let's
Runs a hypervisor on top
runs the hypervisor and
Talk directly to your operating system
and allocates its resources
Provides resources What are resources
Yes brother, is it your LAN port or yours?
Whatever the hard disk is, it is complete
Containers have to be allocated on the other side
How does your hand operate with your lats?
The system is
Now all these sources are used
These are the resources of this operating system.
The RAM that is nearby is the hard disk and this
If it shares it with the operating system
So you can run a lot of lightweight containers.
In case of virtual machine you can
Allocate just enough to make it big
There is a difference, a much bigger difference than this.
It is not generally used in the industry.
Let's do containers. Okay, let's use Docker now.
I understand architecture now I hope hope
You must have understood Docker if you have come
If so, tell me in chat that Module One
Done, okay, module one, so this is how I
The modules are made and kept comfortably.
We will read and understand and as we
You understand me in the chat.
Let's say okay, now let's go to Docker.
Architecture Pe Ki Bhaiya Docker Kaise Kare
So look at the Docker architecture if
You talk about Docker.
There are three very important aspects of architecture and texture.
One of the important things is your
Docker
Engine ok then it's yours
Docker D
Your mind and
Docker CLI: Three very important things
Hey brother, what is Docker Engine, Docker D
what is mind docker cl i kya hota
Understand it like this, that the Docker engine should also be
It is called Docker Application Container Engine
OK, the Docker application container engine
All containers are running in the background.
These two played their game.
Brother, what would Doctor D mind be like?
So Doctor D Mann or Dr D is such a
The service that manages your containers
that container that I just gave you before
Told that there are light weight containers which
Inside you can run shared applications
With memory they run which Docker D
It happens to all those applications
is managing the containers but this
There is another thing inside Docker DI which is called
Let's say
Container D Container D Bhai Ab Ye Container D
I'll tell you what happens, so container D
This is basically a tool of CNCF.
tool that allows you to make such robotic portable containers
You can now build Docker in the background
Container D uses Container D basically
A nice little one written in Golang
Project is where you can create great containers
If you can make it, you can manage it.
Container de same use in Docker background
does okay now this will help your containers
They are managed but these will become containers.
How will he have a connection beyond that?
You will enter the command so you will get CL I.
It means it goes
command line
Interface so you write Docker commands
na docker login docker ps docker build docker
Runs all of that through Docker CI and
Those commands arrive at your Docker database.
which is a background process and that
Container D says, brother, this container
Make it, run it, run it like this and all this
Things are running in your Docker engine
There is another thing called Docker.
What is the client the Docker client where
But basically all the things you need for Docker
You can see that, right? So, Docker client.
Connects to API What is API
yes brother
Application
programmable
Interfaces are things that are on your back
Docker client
Or Docker Desktop, whichever you use.
You can do that directly through the API.
Docker talks to the engine and your
A simple example of this will show you the containers.
I show you architecture through architecture
I'd better tell you how I
Installs Docker directly.
Let me show you, so if you like this Docker
This is architecture, if you want to see it live.
You'll need to do a few things first
What you need to do is install Docker
If we have to do this then we will have to install Docker.
He is going to do it locally also and
We are going to do it on AW also, so let's go first.
First, let me tell you about the local
The first thing you need to do is go to a new tab.
and write down Download Docker Desktop
OK, download Docker Desktop and install it on
Click here to docker desktop
Pay Aapko Aayega The Number One Cutline Software
For all these things now Docker Desktop wants
You should create an account right there.
If the account is yours then create an account.
Click on your account now as you
people
So this is my password auto saved so I
I will continue, this is the password.
The login will also be done and with this you will be ready.
You have signed in to your Docker account.
Now if you have created an account on Docker
So what you have to do is first go
What is Get Docker Get Docker in Docker
You can download Docker Desktop from Docker.
Yes, if you go directly to the Docker website
If you go to Docker's website,
So there you will get the download link.
You can download it directly on your desktop
if you
I will install it and basically install it
After I got a Docker Desktop here
Mine will show up, so this is your Docker.
What Docker Desktop does now
Sees how many containers you have
How many images are running, how many volumes
hai build hai scout extension ye saari
Shows you things brother, what is this
I'll tell you everything slowly.
But for now, understand that Docker Desktop
You have a client that supports Docker behind you.
Allows you to do cool things with the engine
Understand this much now brother, we have understood that
What is Docker Desktop and why? Install it.
I took it on local but AW
How to install Pay, let me tell you
So the first thing you have to do is go to AW
If you want to log in then it is yours
AWL Go Eat Instance Pay S2
In the instance we do our entire
The full meaning of the game of Docker
As complete as the end to end video is
The entire AW of will be on e2 instance only
You can use Docker to practice this.
You can also practice on your desktop.
Let me just launch the instance.
I will name it Docker in One Shot so Docker
I created an instance called In One Shot
I'll take it, okay, a simple little one.
Instance Now this instance that I will take is
I would choose an Ubuntu instance because it's easy.
Too much access remains, Natu is quite good now I
what will I do
I will take this image again Natu wali lei
Pay close attention to the instance type here.
Yes, you guys know what T2 micro is.
If the free tier is eligible then you mean
In this, if your 750 hours of the entire month
If you have a free tier account, you can use it.
But what is the problem in this, do you know a CP
And a live memory is created which is yours
All the projects are Project One.
Project 2 is just one of those projects.
Will it work because there is only one tongue, rum
friend, no matter how much you drive in it, you
t2 to practice your side
Take the micro but I practice my side
To do this I take T2 medium in which
If I get 4GB of rum then I will
I will be able to experiment a lot and you
You can practice well on your side.
No Titu Medium free tier
I have to pay its charge per hour
so this is one if you want
I can also use t2 micro but
Again I have to make many projects on this.
Maybe it gets stuck somewhere
Best is to play on the safe side and take t2 medium
ok you can buy t2 micro to save money
You can take a pair and create it.
Let's take the name of the Docker and put it in
Forest
The shot is of Docker in one shot and this
Select Pay because you
Log in via the open ssa ssa command
You can do it if you do it for PP.
You need to download a software called PuTTY.
If I need it, I take love and create.
I press the key and as I create
I will pay and download it here, it is done.
it's great ok
ok that's great what should I do now
Now I want to enable SSA in network settings also.
I will keep this SSA of mine active.
I like him very much
Now I will keep whatever I have to do next.
What to do when you have a lot of storage space
You build a lot of Docker images
You create projects and your storage is also less.
If it starts happening then the dub that happens to you
Provides up to 30GB of free storage per month.
I'll make it 15GB, you can make it 8GB if you want.
You can keep it, but I'm keeping it to be on the safe side.
I will make it 15GB and after doing just that I
Let me launch the instance, if it's okay
I created an instance of Docker locally.
The desktop will be installed and Adb Hum Log Ducker
One thing comes and installs it.
Will do okay successfully initiative
Shot instance is running ok then instance running
If so, I can select this instance.
I will go to the instance state and
Start and stop if I have to
If you practice with let's then
You can also stop and practice again.
I have to start again, can I
I will click on connect
I will go to SSA and I will use this SSA command
I will copy it, okay, I've done it.
Please read the instructions first Open N SSA
client so let me open the SSA client
so this is my terminal where
I'm happy to open my SSA client.
SSA client nothing happens
You have a terminal that has SSA in it.
It is installed so if you look carefully I
If I write SSA here, then this message comes
So you have SSA installed.
Open SSA Client Done Locate Your
For private purposes, this Docker in One Shot
where was it it was in my downloads so I
I'll go to CD downloads.
I will go and locate this private key.
Docker in one shaw key.pem then ls docker in one
Shaw's yes it is in this download folder now
Run This Command to Ensure Your Public Key Is
Not viewable publicly, which is what happens.
That remains private and that is publicly viewable.
If not, read from Seek AOD 400
Only permission is granted, now I have got the entry
Connect to your instance then enter this command
I'll take it and connect it from here.
I will say yes to the instance and my
Instance is done, now it's connected.
My instance is an Ubuntu instance.
So I mean this is basically Ubuntu.
Your AW VM is two instances
I will update this system so sudo
Aye Pati Gate then I would have updated the system
I am updated so that I have the latest
Latest security patches
I work in the latest updated system.
I am doing it, okay, this too will be done.
Now once updated,
What you have to do is come and grab this package.
If you want to install it then type sudo at get
Install Dakar D Aao What do you know about Dakar Dao?
Bhaiya, come and I will give you all these things.
You will get Docker Engine and Docker D Mind
I will get Docker Seal I will get Docker D
Docker sorry container d get everything that
All of that resides in Docker's architecture.
You will find the item, then click install and enter
I have done it, he is saying I will take 289 AB, okay
Brother, take it, there is no scene, okay, it went well.
I am driving, okay okay, nice, nice
So he installed all the things, if you
If you want to see it, you can see Container D.
Installed Docker service
Given that Docker socket is installed, as many
There were also important things, install them
If you gave it, then your Docker service is
Docker D is Docker K is Docker Engine
If you see that it is not running then do sudo
system ctl status docker ok
Docker enter so it's saying that Docker
Application Container Engine is Active and
Running So Bhaiya Docker Container Application Engine
What happens is the same as what happens with the Docker service.
It happens and it is what I said.
Tha Docker Engine Uska Full Form Hai Docker
Application Container Engine So Bhaiya Docker
Architecture is right before our eyes
It's starting to look good, okay, let's do this too.
Good thing it now has Docker D running behind it.
Hai Docker D which is Docker D mind now bhaiya
What's going on inside Docker D mind good
container D is running inside which is
Inside that too, it is basically Docker's
It's architecture, okay, quit it.
Bhaiya, then what you told me about this Docker Sia
What does that mean if you write Docker?
These are all the commands that you can use with Docker.
What commands can you run with it?
docker run exect ps build pull push
You can login and run all the things but brother, when
also i do docker ps docker ps w
command that makes containers visible whenever
I do docker ps so I find this strange
I am getting this error, how to solve this error
So understand the error, what is it saying that
Docker D Man Jo Hai Docker D Usko Connect
Unable to do so because permission is denied.
So that thing does not have permission, so my
Who am I, my current user, camel that
Ubuntu doesn't have this permission for Docker so this
Ubuntu needs to add me to the Docker group
It will have to be done and only then will he get permission
how to do sudo user mode user mode
Meaning, modify the user and add him.
In a group whose group name is Docker now
Add which user, whatever my current login is.
These are the users, this is the dollar user, what does it mean
There is a variable name which is current
There is a user, please enter his name like this.
Given if you do Docker PS now you will still
Why is this error coming brother, because your
The Docker group is updated with the user.
It has been done but it has not been refreshed due to which
that if he sees things on this terminal then he
Refresh sudo or new grep
Docker will generate your group bit with this command
It will be refreshed, refreshed now you can
Two
Docker Docker PS Now you will see error not occurred
Container ID means if a container is running
Then his ID will be visible and the image will be visible.
The command will appear, everything will appear.
Basically this is Docker PS, with this you
What did Docker SEAL I change from Docker D to a
Sent a command that brother, show me the container.
I hope you understand your Docker architecture.
I must have come across the same thing you can do with Docker
You can do this on desktop as well using Docker.
Opened the desktop, now here in the corner
Terminal is given, click on it.
Terminal opens, what can you do now?
If you want, you can enlarge it and write it down.
Yes, Docker PS and any number of containers.
How much will you see them in your local area?
Mast na so what did you basically do
Have you also understood the Docker Architect lecture?
It means taken
Module Two I hope you understand
And you must have also understood that
How to install Docker in Module 3
I hope you understand, come on.
If it comes, let me know in the comments.
Three done, now let's move on to Docker images
Containers talk about both of these
What are these, brother, let's talk.
First of all, understand Docker
Images here if I run this command
But if you have any image then it should be visible
It goes away but brother, what is this image?
You might remember that you were in college or
Did you ever write letters in school?
What are letters, such a paper
There are small things in that paper
Something is written and in that small writing
What do you make of what happened? Your answer
You make a script, you make an answer script
If it is correct then you will have just this much blog.
If you can get it done then basically and this small
Give the letter to your friend, he is also nearby.
If it happens then you will pass like this only.
I just happened to be joking
I was a topper, so understand this blog like this.
Look, there is an image and the answer from this image
You create the script and understand that the container
Okay, that's another container from this image.
If it is made then you can post that image anywhere.
With two lattes you gave to your neighbor that
Brother, take this letter and pass that image.
Put it somewhere, you make a container for that thing.
You can right, how is that image created?
It is written using a Docker
File Docker
File Bha But Bhaiya Docker File Se To Image Banao
will go to create container from image but image is
Is the image such a blueprint?
in which all those steps are written
that you use to run an application
What is needed, what kind of environment is needed
what should happen and how you can create that image
You can directly create and run the container.
It's like a blueprint, so understand it like this
Write some instructions in the Docker file
There will be an image based on that instruction.
It is created and you can replicate that image.
You can create any number of containers.
Let's say I'm here, I've got a great one
make notes okay make these notes that notes
From this it became an image of Docker in One Shot or
Then a video was made, now you can see this video
You will see it and if possible, you will also share it with your
of friends and the things that are made
If you have these nut shells, then you
If I tell you, first of all you will write Docker
The file contains all the instructions.
what will you be for
Build Image then Instructions to Create Image
and what a Docker file makes
An image is created and what will be in this image
Everything will be there, there will be an environment
thing so that in a container
Application should run even if the source of the application is
The code is also inside this, you can see this image.
so that a container
If the container is created, then there is a mantra that you
If you want, you can memorize it, it is made from Docker file.
is a Docker image and is built from a Docker image
Docker Container But Bhaiya Agar Mujhse Koi Image
If I want to fetch it, I always have to write the Docker file
Will we no longer need pre-built images?
You can also bridge already built bridges now.
Images can also be automatically saved to your computer.
You can bring it and create a container from there.
So let me show you how to make pre-made
How do you get the images first?
What can you do, this is your system, do it here
Here is Docker login brother, what is Docker login?
So what will happen to you with Docker login?
The Docker ID is as I just showed.
I didn't have a Docker ID here.
I logged in to Docker here.
I have this movie called Train with Shubham.
The ID was
Correct now the password or I can enter my own
I can enter the password of
Let's
I forgot whatever my password was.
Am
So okay, let's enter the password.
It is saying that I always enter incorrect username.
If I forget your password, you can never forget it.
You can, but if you give your personal access
If you use this token, you will never forget it.
Why and how do you do personal access brother?
Please tell me the token that you have to log in to Docker.
Docker Hub is this one thing where
Store your images across all repositories
If you live there, go to Docker Hub and log in there.
Sign in OK Log in to Docker Hub
The same ID as your Docker ID.
Now I have made myself happy here.
Also your username will be A B C D on it
Go to your account settings
Okay, go to account settings here.
Your password can be displayed if you forgot it.
If yes, you can reset it here but here
There is also a personal access token, click on it
Do it and generate a new token here.
Generate a new token named Docker
In One Shot Okay Docker In One Shot Named
A token has been generated, now I have read it.
Right Delete gave these three accesses and I
I will generate it as soon as it is generated.
I saw the token here, now you remember it
Because y is a token
You can generate it anew every time.
So what I'll do is I'll go back to Docker here.
I will try to log in with the username
Asked to train with Shubham, entered the password
asked this is the token I copied
This is my token that I copied here.
I'll go and beat him up here
Enter login suxi ded so now you can use Docker Hub
Docker Hub is a place where you can log in to
But all the Docker images you have
Everything is kept in your public domain, okay?
Any private images are here
okay what will I do now
I want to run an image, how do I pull it?
If I do it, I will do it
A Docker pull is an image named
Hello world to hello world to hello
There is an image called World, I am using it as a bridge.
I am about to enter brother, what is a bridge?
So pull means you pull an image from Docker Hub.
You download it like you would git clone
Clone any repository locally by doing
You can do the same by doing a docker pull on any
You can download the image from the repository.
So you're done with docker pull hello world.
If you look at Docker images you will get hello
The image of the world has come to you which is 18
Someone must have created it a month ago, but
If it has come to you then it has become your image.
Now what do I have to do with this image?
container is made from so what can I do
what is the name of the docker run image hello
World Bus Enter and Can You See This Hello
From Docker this message shows that your
Installation Appears to Be Working
Correctly what does it mean
We installed Docker correctly.
Local pe bhi AW pe bhi local pe chaho
So you can test docker pull always
You don't have to docker run if you use hello
If you do this then they will first pull the image.
and then create a container from that image
Enter saw made me docker pull val
He had no need to do
I ran it directly, okay, hello from
Docker and these and those things, okay, I got it.
So what happened to the Docker client?
Contacted Deem Docker Deem said hello
Pulled the image of the world then did the docker dimmer
created the container and saved its output to your
When I showed it at the terminal, I understood that
How the Docker architecture works
Docker D man Docker CI all these people
It is connected, okay now brother, you have seen the image
I have taught you how to pull, but which image can I pull?
Should I show you this? Let's pull more images.
I will show you my sequel address.
So I docker pull
MySQL If I do
To install My Sequel or
The image that made my sequel run.
If it happens, he will download it too, it is so correct.
So let's also look at this beautiful image
I downloaded it now from this image
what can I make, I can make a container so
From the Docker Images I can see that my
Pass my sequel ka image aa gaya hai 602 ab
What is it now, I will die in a second.
sequel ko run kar sakta sata wo run karna main
Next, I'll show you what Docker containers are.
I will show you in it, but still, if you
Want to know how a container is made?
With images, remember that the Docker file
To
The image is created by building it and running the image.
container is created so this is the image I have
If I do docker run image do this then
This image will be created but the mycl
No, that's my
Sequel is a server, login to the server
You need a username and password to do so.
If it happens then you have to have one
Putting a password in an environment variable
It is called MySQL
Route
Enter your desired password and value.
You can enter the root, so by doing this you have a
once I gave my sequel root password and
The name of the image was given by my sequel, just you
Press enter friend, watch my sequel.
Chalne Lag Gaya IDB Inish Ei Jashan Has Ended
IDB Initialization Ended Temporary Server
Started and finished will come to you after some time
that my sequel has started can you see
This is my sequel community server.
Great, okay, everything is going well, my sequel.
Inet Process Done Ready for Startup
Simple your my sequel started running, how much
That's sorted, okay, now brother, the question comes.
That's my sequel that you played, friend.
This container has been started My sequel is running
This is going on in front of me, now I am
So whenever you run a container how do I exit
If you do, your terminal or your
He blocks the screen, so that's why
You should always return the terminal or your container to the
What does it take to run it in detached mode?
I will tell you what happens too, but first understand.
What to do in a situation where
Is our container not closing?
If you do this, it is simple for you to operate.
It's a system, it's a VM, log it back in.
Go to the instance and connect back
Okay, here I go. Instance.
I click on Pay and Connect again.
I connect and in a new tab
I write fine on another terminal
What
CD downloads means this is from my local
I am connecting back to your
AWS Pay and I'll do it here
Can docker ps and I can see that
My Sequel container is running so image
The container created from this is running
Containers also have a life cycle.
The container is running now and will stop again.
It will restart again if it gets killed
This is the life cycle and it is the life cycle of the container.
The name is Vigilant Napier, whatever the name is, hunger strike.
If it puts it in, look at your container here.
He's walking and he's watching here too.
Showing that status up about a minute
means it's been running for 1 minute if I do
docker stop that stop and the container ID
I will put the ID docker stop stop the container
Hit enter and see what it does to the container.
will stop it means if I
If I go to the screen, I'll stay here for a while.
After which my screen got blocked
Unblocked due to a running container
So great, I'm back on my screen.
I've understood that if you have Docker
You have run the run command by mistake.
If it is not run in the background then your
The screen will be blocked and you can switch to someone else.
By going to the screen or some other meaning
Unblock it by logging back into the server.
You can get it done, you can stop it, but if you
If you want to run it in the background,
The command is docker run hine d what does this do
It detaches and runs in the background.
If it remains then I enter it and now I will make it taste good.
I'll run my computer, I'm running something.
It is not happening and if I go to another place
Go to another tab on the same instance
On another terminal, I will open Docker
P.S. Your container must be running fine.
How interesting is that, haven't you seen that?
How do I deploy a repository from Docker Hub or
and I can pull the image from
I can create a container by running it, but brother
The question arises that the image you have pulled
What I have done is a publicly available image
But I have a project, okay?
I have a project from Lets to Java.
Make me a container for that Java project.
how do I make it, how do I do it, so
You will need to write a Docker file for this. Let me
How do you write a Docker file?
I will teach you Java project.
You will need many methods of Java.
To get the project, you either write
Write a simple Java git up and create a simple
A Java application will come up which will have a
SRC
There must be some code, it would be nice and that
A simple pup will come, simple or you will be mine
You can visit my repositories on GitHub
There are many projects, notes and
Basically Spring Boot Bank Pop and many more
There are a lot of projects here
Write two Java and you will get a simple Java application.
You will get a simple, absolutely plain Java.
Application is in this thing and simple date current
Prints the date as a developer
Why not learn to write Java programs?
Because what will you do with the work of a developer?
What you need to do as a devops engineer
Docker to run this Java project
If you want to learn how to write a file then let's do this
This is a simple Java Docker project, we call it
People clone their local or
Let's bring it, okay, so MKDI R
Projects so I'm doing a project called Projects
I create a folder in which I put all
I will keep giving you projects, then CD
Projects
ls gut clone now I have my which java docker
I clone the repository that is
ok clone it
I took LS and it came so simple Java Docker this which
My project is this docker file is dummy
And what is mine in SRC SRC
The source code of the application is kept brother
The Docker file is already written, no problem.
No, I'll delete it now and do it myself.
RM Hine v Hine if writing from scratch
v means verbose so it appears to be deleted
If it does, then Docker removes the file.
Enter then the removed Docker file was visible that
It has been deleted, let's create it now.
Docker file create docker file Bhaya Docker
what would a file be
Let's understand that some set is in the Docker file
There are some instructions
There are instructions and those instructions
Because of this your application runs brother and
Please explain to me what an instruction is.
Give it inside the Docker images.
Your application code should be
There must be libraries that are compatible with the operating system
Information about how to use it
which are basically repositories or
Any framework has been done or any
There are tools, there are packages, whatever you need
All that should be inside it, so this
The image is a box type image which
Everything is inside and it grows up
A container is made, now how will that box be made?
You need to create a Docker file for the thing
wich are instructions to build image so let's
If I give you instructions now, you will never
You must have made Maggi sometime, right? You made Maggi.
If it is there then there are steps in Maggi, right?
First take the pan, take the pot, pan, whatever you
You must be saying what do you say to me?
So I say Bhagona in Marathi Madhe Patal
The pot says, okay then take the pan and then step
To tell me, add water and then step
Three, add Maggi inside it and heat it up
Look, there are many different types of people.
Some people add Maggi first and heat it.
Then some people add spices beforehand.
If you add spices then when the spices are already there
Don't do that, okay, first Maggi
Let it boil well and then add the spices
It also depends on your preference and
Step four, brother, turn on the gas and drive it well.
The steps you have written will do.
Instructions
have to build a recipe for Maggi so this
If you give the recipe to someone, he will have it.
The image will appear and he will be able to make Maggi from it.
So if he can make Maggi from it then it will be fine
The Docker file is made from
Image image is created from container let's just e
Docker writes the file. First understand that
Which application do I want to run?
I want to run a Java application.
The first thing I need is a
Environment will require a pot and pan
You will need a computer with Java installed.
So I'll use an image for that too.
whose name is base image then pull images
writes to
from so I will write here
What is the name of the base image now from Java
If you want to know the base image of JD
How do you take it, it is simple
You can use this image, okay, open it.
JD now has this image name next to it.
There is a tag for the image, brother, what is a tag?
This image has a version of the image.
from 17 open JD's 17 I want a Joe
JD has an image called Alpine, so this is a
This makes the image very light weight.
What happens is you get that environment
which already has the Java Development Kit
installed so you can get it back
You don't have to install it, it's done now.
What to do now you have a working DIR
Working Directory Entry
If you want to walk, you will need a container in this container.
Create a folder in which this application is placed.
If you keep the code then let's make it work.
In the directory sl a folder named app
I want to go ahead and create it inside the container.
which is going to be the container okay now I
What will I do in this, I will copy everything
thing that is stored in my host or source
hui hai to my container so i dot likha
I will give you copy dot, meaning copy from here and
My container's working directory entry
I want to know whether I am on this host or whatever I want to do.
The source code stored in the computer
that goes into my container and that
Once the container is running, you have to copy it.
Isn't it the source code, so he's writing the copy command
I copied it exactly to the Word directory.
I've copied it, now what do I do next?
I will make it simple, Java S Main Java
Brother, what is this Java C, whenever
I need to run a command, I use
I run run all these people from work
Syntax of dir copy run this Docker file
Okay, so run a little bit of Java.
The speciality is that the Java code is
It is first compiled and then executed
If so, to compile Java into C it
command is required and your file name is
what is the file name so what is the file name see
inside ARC med j so med j
If your file name is then it is what I said
so what am I doing source code name
Copy the main.java file from the folder
I am doing this and putting it here so my
There is a paper inside that paper, so I copied everything.
I have done it and inside it there is the SRC folder.
The main dot inside it is called Java.
I understand that I have to run the slash p.
This is my working directory.
Inside there is a folder named SRC copied
is over and he has to run me or
You can do this or what can you do?
Yes, when you're copying, you're just
ARC only
Copy your main Java code.
where is the sl a s main.js
So what does this mean in your source code?
From the one that is placed on the host, you
Copied the made java and installed it inside your container
put it in the pap path and compile that thing
I did it, it got compiled, then at last I
I enter the command CMD whose name I will enter
Java and comma class name so my class
The name is main, so the main class name is me.
I will put it here, done brother, what happened to me?
Let me explain it once again,
first what is your goal my goal is to have a
I want to create an image that will connect Java A to my Java A
To run it in a container, you need a
Writing Java file, sorry, writing Docker file
Padi first pull a base image which
Gives
All
Required Tools and
libraries okay so like my java p so
OpenJDK requires Java to run
So for Open Jedi, I pulled it.
I have pulled the base image and now that base
I will create a folder inside images.
I'll write here, create a
Folder where the page will be stored to page
The code which will be stored is NA P code.
All the code files are in one folder.
The command for that is work dir now
what am I
I'll copy the source code
from your host machine to your container so which
The container is a folder named PSLTapp which
Inside the container is its source
I will copy the code which is on the host machine
is kept so copy command src to
My container is done, now what will I do?
compile the
Application Code So I'm going to use my application code
I will compile it to compiled Java s
I am done now, then I
Run the application I will run the application
But brother, this is also a command, this is also a command
You have written run here, CMD here
It is written that why do I explain such discrimination?
Whenever you write a line in the Docker file
Each image created from that Docker file
Line is a layer from which the image is built.
If this is happening then all these lines are from
work ddir copy run this all
Lines for creating intermediate containers
It happens but the CMD is such a
There is a special command that once your
To run the container once it is created
The command you enter from above lets say this
Your container is created, here is the complete code inside it
Everything is fine but you have to drink the water inside
So you will like this straw, right? So this straw
That's the CMD you enter.
You can drink whatever you want
So you can run this command if you don't
Even if you write it, it will become a container but if you
If you are writing this command then after the container is created
After how much this command will be executed
It's cool, isn't it, whatever is written till here
The image will be built using these instructions.
The image created by a particular line
The container that will be made from it will have a
command will be injected ok simple now this
You can also overwrite the command when you
Docker run is the command that you use when you
You can also overwrite this command in whatever you write.
If you can, then CMD can be written over this.
There is another elder brother named Entri
You can write point in it like this too.
I can write this but I can write this when you
All commands when you enter the entry point
You write that the entry point should not be overwritten.
CMD may overwrite CMD and
Entry points are both syntaxes that
Not used to create intermediate containers
The container is created, followed by the commands
It is used to inject
is done escape colon dk enter my docker
The file has been created cat docker file my docker
become a file
Now the Docker image is created from the Docker file and
Docker container is created from Docker image.
What is the command to build an image from a file Docker
Naming the build image is also very
If necessary, you can do the naming ceremony with high tea.
Yes, as I named this image.
Java Java App I named this image Java App
and after giving the image name Java Pup
I will just put it here dot bhaiya dot ka
What does dot mean context?
what is context bro
Context means the Docker file that that Docker
This image can be created by taking the file into such a context
Now where is the Docker file kept?
DirectoryEntry
Step one out of five means what is that?
The first step is running the where clause base image
He is bringing the Step to Work Directory to
P is making, you are watching removing
Intermediate container that creates a container every time
removes it and creates a container
Removes this thing called layers
okay so step one is a layer step two is
A layer step three is A layer step four is
A layer again, all these layers are yours now.
You can see the image named Java App has been created.
So
Docker Images You Can See Java App Name
Your image was created 32 seconds ago
How right
Now the image is created from the Docker file.
If the container is created then docker run this command
If I put it and put Java Pup then my ai
chal jaaye aayega enter hello docker current date is
Wednesday November 6th Itna Kitna Mast Na To Jo
Also our source code was made in Java
Hello Docker Current Date Is so it went great
Now I want to make some changes in the app.
in the source code
I will go and replace the made java with lettuce.
I don't want to write hello docker, what should I write?
If you know me, you know
what do I say after hello
I say hello
Subscribe friends
Okay, you're 100, but
Still, we have to reach at least one million.
So subscribe, I did it
I gave it but brother I changed it and if
I wrote docker run java p still docker
what does it mean what does it mean
Whenever you run application code that is hosted on your
If it is kept on the machine, it changes
You will also need to update the image and
The container created from the image will be the updated image
Updating the image if the container is
Very easy docker build high t image ka
The name of the Java app and the image of the Docker file
The context is here and where is it kept.
If it is kept then dot enter then see
The previous layers took it from the cash
Liya na using cash so layer by layer
He stores it and takes it from the cash but
Where he felt that SRC should be copied
running there he ran
I did not take the cash there, now I have it.
The latest updated image of that image has arrived.
I will create container then docker run java app
Boom hello friends subscribe brother
Current date is 6th November. How correct is that you
You have understood how to make any code work smoothly.
Be it PDF, Python PDF, any PDF, you can use its Docker
Can you make it brother, do you understand Docker Java?
Let's explain about Python as well
Let me explain a Python project.
would have picked up
Which one is this flask, let's get it.
So this is one, let's pick it up in which
There is a file named p.pwa which will help you in doing this.
Some of it is provided by API and some is code.
There is some code, it is very nice and beautiful.
It runs its Docker file is also written
And look, there's entry points and all that.
The thing is written, now I have to do it myself.
I'll make it okay let's make it so the code
Clone it and it will come back to you.
In projects you have used a simple Java
Now I did
python-tk pup a Flask app I picked up
Flask is a framework micro
framework for
rm new docker file or removed docker file
Now let us understand what is in this project.
What all things are kept in the dm is app.py
First of all understand the requirement and run
Take what app.py is, that's the code
Where your flash cup says Run Pawa
What is the file that you are using?
If you are going to run the application then read it.
I have the application code in Run Pawa
The code to run the application is written
What are the requirements, let's open it and see.
then cut requirement.txt so that flask contains
2.2 is written, meaning the particular version
It is written about Flask which you need to install.
If you want to do it, okay, let's do it first.
What I need to do is to create an EM Docker file.
Now in this Docker file
What will this Docker file contain?
First of all it will be from because we
You have to pick up the base image and bring the right base image
We have to bring it and from this base image we can do things
The base image of this application will be
I use Python for this
I can now use Python 3.7 as well.
I can use 3.9, 3.8, whatever yours
The developer said that for this project this
Write the version of Python you need here.
It has happened, now what will I do?
Work DIR made
What will I do now with the name of the app? Copy it.
I will take the code from my local or my
Done inside the container from the host machine now
I'll run whatever libraries I have
The command to install is pip install
Hine R
Requirement dated Ekti brother, this Pip
How to install it and how to do it
When I found out, I did a simple search.
How to Install Python Requirements
Ekti, in whatever answer he got, he said this
Told me to write pip install here r path to
Your Requirement TT My Requirement
If it is kept here then pip install han
Come
Requirement is simple so either in your read
It will be written in the file or you can ask the developer
Ask or do some research and find out.
DevOps engineers can write any Docker file
Now after doing this either I can enter
I can make a good point that
which is the file that python runs
His name is Rund D Pwa or so I can put that
Or I can enter it using CMD
Now let us understand that the example I have given
Shown here is this Python file in it
Python is written in the entry point CMD
Why is it written run in it, then the entry point
I'm written in Python, so it will always run.
If run.py is written in CMD then it will run
If you did not enter any command externally
then run.py will run but this run.py
It can also be overwritten because c
AD is a command that can be overwritten
The entry point cannot be overwritten.
ok then
Lets you get Python Nut JS or whatever
I want to create a working base image.
Took the directory in which all your sources are located
The code will be that source code on your host machine
copied to the working directory from
If you need any libraries, install them.
And then finally run the application
given escape colon double k enter docker file create
I've gone from the Docker build to the latest
I made this one called Flask P.
Let me turn it down a little bit, then the flask
Pop done and here the dot bus
He will play enter cool, so what is this?
This is what I'm doing, this is how I'm portraying myself.
from a Docker file
Look, he downloaded Python 3.7 first.
Did
Great, ok, download it brother, very nice
The big image is 211 AB, so right here.
is there any thing
I will also go ahead and teach you how to
How to Multi-Stage Large Images
You can compress through Docker builds
I'll teach you this too, okay, let's go now.
We are into Docker images and containers.
playing okay what is that bo warning
There is no problem with the warning given
Okay, I am successfully tagged now.
what will docker do
Run image name Flask Pup now brother this jo
Flask pop is on this particular port
It works because it is a web application.
So it runs on a particular port, so you
in your code or ask your developer
Look, on which port it runs, it is saying
If it runs on port number 80 then it is fine
If port number 80p is running then you can
Set the port number 80 of the container to that of your host
You can map port number 80 to let's
port
Whatever is written first is your
Host's port colon port number 8 he wrote
which is the port of your container
Brother, I did not understand the host port.
what happens to the container
Like I told you, it's
Your operating system is your host
It has resources that are available to Docker
Engine
Docker
Engine shares and manages its containers
runs now inside this container which
The application is running on port number 80
running and your operating system
Its port number is now mapped to these two ports.
or else
Publishing the port for Bindies
So you have to write in the command
it means hein p
Port number 80 on your host machine
Of
The binder is simple enough, let's do it.
and if you see this page in the background
If you want to run it, write down the background.
If I drive it, I'll show it to you.
docker run hine d hine p 8080 flash cap done
If the entry starts, what will I do now?
I'll do a docker ps and see if my flush cap is working.
my flus cap is running so I
I'll go to my eToo instance. This is my eToo.
instance or its public IPv6
Address
is there an HTTP port on this
The application must be running
Enter and is taking a lot of time.
For some reason it is taking a lot of time
Okay, let's see if you feel like it, man.
Your application is taking time and is not working.
If so, you go to this and this container
ID is Jack Docker Logos Docker on this ID
You can view the logs inside the container.
What's running inside the Docker container
It is running, enter and he is saying what is running
On All Addresses Port Number 80
ok but it is not working on port number 80
Yes for some reason, it doesn't matter if you
And drive it to the port, what can you do?
Docker PS this container which port
I should have gone for number 80, but why not?
It's working, now I'll tell you why.
It is not working because your port number
80, it is not available to the whole world
So what do you have to do with your
You will have to go to the instance
Okay, so this is your Joe Docker in one shot.
Then you will have to go to its security
You will have to go to security groups and
By going to the group you will see that these bound or
Then there is nothing in the incoming traffic.
So I'll add a rule and tell it to
That you can set port number 80 to Anywhere
Meaning anyone can access port number 80
and save it, now you have saved it.
What has been done to port number 80?
I've opened it now I'm going to go over here and
I'll go here and hit refresh. Can you see?
This is your application hey hey welcome to Deb 0
So whatever your application is, it will run.
There is another path in this application, slash
Health if you put slash health.
You will write that the server is up and running and you can see it.
Yes, write that the server is up and running.
If it is running then chch means your application is running
Fine, it's going great, okay, so whatever.
You put Slush Health and all that in there.
You can docker log in and see whatever your container ID is.
You can see it in there, so I saw the slash
Health hit this time slash this now if
I
I will do
Slush profile now profile name so something
If it is not there then it is showing as not found
Now I checked in the docker logs.
Profile not found, so cool isn't it?
Whatever you are doing is visible here.
Yes, but brother, every time I have to give the command with logs.
Is there any way to run it
that your container gets attached on this screen
So that I can see all the logs in real time.
Got exactly the right Docker logs as you did
It was written that instead of logs, what should you attach?
What happens by attaching it is that whatever you
The container terminal and your
terminal, these two will be attached and
You will keep seeing it live here so if I
Here I do refresh refresh refresh
And slash something like that so look here real
I can see how cool the time is again.
If I slash once from here, it comes here.
This Is How Docker Attach Works OK
Again, the screen of your container is here.
If it has arrived then your screen will be blocked.
If I went, I would go to one side.
Go and unblock that screen, Docker.
Stop container ID then now container stop
It will be ok, the container will stop.
Absolutely awesome and your screen is there too
Get unblocked here
will go you will see vidn dekho unblocked
Now just like you did docker stop
You can also start Docker.
Yes, and that container will run.
You will have to stop the container docker stop
Do it and this is your container that will stop.
will go stops after a while
He will stop after some time in stopping
It takes some time, yes it's done, stop now
You will see that by refreshing it, side cant be
Riched but if you have done docker start
So the container has started, now you can run it
Will you refresh? Welcome to Dave 0. It's going great.
So this way you can do a lot with containers.
can you play something okay let's go
Docker PS So your flashcap is running right now
And my sequel is also going on which is my
Is the sequel going on? My Sequel Joe
Is there a database? Can I go inside that database?
I can enter and after entering the database which is running
Can I access it at all?
If you can do it, he also has command over it.
The command is
Docker what can you do by doing docker ps whatever
You have to get inside the container or
You have to insert yourself inside the container
To see what is going on inside,
pick up the container's ID then Docker
Ezek means
Execute me an interact terminal
If you want to make it, then hine it, it means interact
I will enter the ID of the terminal and container and
Like my shell is bash so I
I will put bash and press enter then docker ekak halfna
ID and bash of IT container now this bash
5.1 What is this, this is your sequel
Now you are immersed in my sequel.
Meaning if I write my sequel here
The username is root and the password I entered is
He had also put a root, so he
Root Welcome to my sequel you great my
Show data has come in the sequel
You can create databases that show bases.
database
Devops You can create a database of great Devops
Maybe you misspelled O Create.
So create database devs so great query
OK show data
Once the bases database is created, you can use Docker
Running my sequel inside a container now.
In this way you can exit and go to the container.
You can come out from inside one more time now.
After exiting, you will be back to your instance.
If you can, I've shown you how to build Docker images.
Taught you how to use the flash cap of Java if you want.
I can also make nuts from GS but I use wood
Highly recommended that you also practice that
Docker ps what does this mean when running
Containers look like Docker images. What does this mean?
It happens that the number of images you have
It looks good but brother, you made Java P
Its image was created and why its container
It is not running because its container job
All I had to do was run the app and close it.
Dena to run kiya hello world hello friends
Whatever it was, it was printed and his work was done.
If it happens then it does not have to run all the time
But if you always have to run something then
To you
ITD this command has to be run then for
Example me a
From Ubuntu Lates I am now on Mac O fine
This is my Mac, this is Docker Desktop.
My Mac is O Bhaiya, okay give me here
I want to run a container that is always running.
How will I do that in front of me? Let's do it.
docker run nutu I want to run nutu in mac os
But keep showing me his interact terminal.
If I want, I will do it
IT D Hine ITD Enter
Has the container left? Now get it checked by DPS.
Ubuntu is running but this is what I said
If IT had not been installed, it would not have worked.
If it had come and closed
Docker stop if I do this one
If I stop the container
Okay, I stopped it, I stopped this container.
and if I do docker run ubuntu then that
It won't work because what is his job?
Turn off the UTU and start it, so if I
I will docker run
Ubuntu
So let's close if I do Docker
P.S. Nothing is coming because his work
what was it, it stopped, but if you
If you want to keep running always then high itd like this
You have to write D which means in detach mode.
IT means interactive in the background
Terminal is fine so I hope you have containers
You will understand a lot about
I understand a lot about images.
He must have gone, if he has come then chat with me.
Tell me brother where is our menu?
Yes so I hope you know about Docker Images and Docker
Containers in understanding about this module
This must have come, this was our module four and
If five has arrived then you can visit my repository
I go boy Shubham 153 and here one
Node Jas is an application of Node Jas
it
please show me its docker file
It is already written here, so look at it.
It doesn't take much effort as
If you used Python there, then here
Use node and then copy the work directory
code whatever you want to install and
then run the command docker write the file docker
Creating an image Creating a Docker container
It's easier if you get it up to here. Fifth
Everything seems easy to me till the module.
Say in the chat that Docker is easy and I will understand.
I will realize that you understand everything till here.
I have come for about an hour now.
It's been over an hour since I read this far.
We are going to cover all these things further.
If you are going to do it then Docker networking now
Let's get started with Docker Networking.
It happens brother, understand that this is your
computer is ok this is your cutter ok
A Docker container is running on this computer.
What is running? Running Docker container
and you have another Docker container running
Here's this one from Let's, which is Docker's
container that's a flask container okay
This flask is the container of water and the other
The container is my
SQL is the container of the database
Now this flash cap container is a
Isolated Container
this is the container of my sequel this is a
It is an isolated container, which means it is
can't talk to this can't talk to this
Maybe but if you have to choose between these two
If you want to get things done, you need a network.
And that's why the concept of Docker comes in.
The Docker network is basically seven
There are seven types of butts
If you want to read the official one, I will tell you
Let me tell you from which second docker network
Let's get started
Let's shorten it to 'd', okay?
Joe Docker
There are seven types of networks.
The first is the host that your Docker
The network the container is on and your host
If the network of the machine remains the same then
Your port number is running in 80 host
And you have added the host to the Docker network
then the port number of the Docker container is also 80
It will continue like that, one thing happens and then another thing happens.
Is
The default which is
There is a bridge, it means like this of yours
This is your container, this is your operating system.
host is your from this host to this container
Building a bridge to network you
If needed, they provide pull by default.
Those Docker ones are okay, by default a bridge.
If it happens then there is a bridge network, right?
this is your
The default network remains the default host.
The bridge is gone, then it happens that the user
Defined
Bridge that you can create a network of your own
You can also enter the name of the Custom Bridge
It is also said that you should build your own bridge.
Enter name User Defined Bridge
There is another one which has the meaning of nun in it.
No network to or from Docker container
Can anyone talk, can he talk to anyone?
could be isolated completely isolated
There is no internet or anything else going on inside.
If there is nothing then brother this is a non-network
Why do you need a network if you have one?
running a container whose job is just to
If you want to run things or need internet then you
Give me a non-network, there is another network
Which is called Mac Wallan
Bhaiya what is Mac Vallan Mac Vallan
Basically on two MAC addresses
It can communicate generally
Docker swam when your a cluster related
If so, it uses it in the same way.
There is also an IP address and an overlay.
So these last three are generally Docker
With Svam you read Docker Svam What
It happens brother, like you just bought this laptop
You have created Docker containers like this
Build Docker containers on 50 laptops and send them to everyone
Two clusters run together, which nowadays say
Kuber Niti uses it like before
Dockers used to use the form for that.
There are three uses pert which are important for you
is reading and is this four host bridge user
defined and your nun so this four for you
It is important how you study brother Docker
network so what do you do docker network ls
If you write this then see this network ID
Haybridge is this, the host is this, the nun is
You have three such things right now, three networks.
right in front of you if you want to have one of your own
What can you do to build a network?
Docker
network create docker network create let's
You have created a network called My Network.
made and hine de hine de means driver
So this is what I have given you a friend cha pa 6 seven
These are the drivers that told the type of network
So let's give me a
If you want to create a network named bridge, then enter
If I do a docker network ls I can see it.
Is my network a bridge type network?
This bridge has been built, what is this by
The default one is made that host one is this
Nun Nun so you can see bridge is a default
Driver Host is again a driver my
network is a custom bridge and none is no then
The four you wanted are right in front of you.
MAC VLAN is not covered by IP VLAN overlay
Do not use Docker SM because it is outdated
That's why it is good brother, what is its use
It will be used in a project
I will get you a two-tier project done.
Tier project means how is the project
The project is so beautiful that it is yours.
The project is running a Flask API.
okay there's a flask running and a
The MySQL container is running fine.
My Sequel container is running
Now this flash cap is a Docker container.
is this a docker
Container, this is my sequel, this is also a Docker
Container
Now both of these are Docker containers.
Someone is doing well independently
I am not facing any problem but now I have to
Getting Connected
How can this be connected to My Sequel?
I will get you to use me for this thing.
Docker network will be required
Okay, let's docker network this one.
The project is currently using Docker
Network connection of a two tier
I will go to my repository for applications.
Okay now here on repositories I find
I will do two tear flask p okay so be it
gone to tear flash this is my complete application
It is a very cool application and it is working great.
I will clone this, why should I do this?
Just to show you the concept of Docker
Networking is fine, how many projects are there now?
My two projects are gone, the third one is done.
Also take the project to Git
Clone this enter to tear flask on your
The clone is done, now I will make a CD and
I will enter inside the tear flask
It's good, now understand this post, there is post in this also.
If you have Pawa then cut app.py and read this a little.
Brother, I don't understand all this, it's okay.
No one needs to understand why because
It's the developer's job to write what your job is
You just want to know if this application
Yes if it connects to a database
It is written in it, Confil my sequel from
environment variable so this is something
There are environment variables that you need to pass
You will need to operate this flask pop.
Whose name is My Sequel Host My Sequel
User mySequel Password mySequel
database so these are the four variables that you pass
If you remember, you will have to do Docker
Run han e this is what happens na e because of this you
You pass the environment variable, okay?
Let us now understand how to run this app.
How is the Docker file required for this created?
So if we go to the Docker file then this Docker file
If you look carefully, this is from python3.8
Slim means so this code is Python use
Uses version 3.9 and smaller images
That's why it has slim written next to it.
Small
Image set the working directory in the
container then working directory entry
What he's doing is some packages.
If you are installing this application
It requires some packages to run.
Installing the system first
Upgrading the system
Then there's a live my sequel client
Because this project is with My Sequel
So a my sequel client
There is a package of Naim and he is doing it well.
Then he requisitioned and to
Copied a My Sequel client named
package that it also installed and
Installed the requirements, the rest
Copied the code and ran it from CMD but
Bhaiya, this is almost similar to how we
People made Flask apps and Java apps
Writing exactly the Docker file would have been much easier.
First get the base image working
DirectoryEntry
read the code
And then copy the entire code and run it.
If you do it, it's very easy to write a Docker file.
It's easy, let's run Docker now.
the file then
Before doing docker run we need to docker build
I will have to do this in which I will use the image of this page.
Name
I will write
Flask back end
P then flash back and P or should I call it
Instead of flash back and p, I write two tear
back end two tier back end this is the name of it
I put it in and after doing a dot, I put it in
The back end of the tear-floss cap is where
But the code is written in Python, build it
I do it so I put it on build
Let's get this right
Great now this will be a great build this image
I have taught you how to create an image.
Correct
oh come on it's very cool
Okay, now this is going to be the container.
Let me show you the diagram, so this is what I made.
I've been in it, what have I done in it
What do I need to get as environment variables?
So my
SQL host or whatever its environment
This is the variable I need to pass to this container.
And this container is placed in some different environment
If you want to give variables then it is fine like this
What's gone is my already my sequel.
I am using the container that is running.
I can do it, let's utilize that only.
So what will I do with this my sequel?
What do I need to connect?
I inside
What is a database called?
So I need to connect to this container.
What is needed for this, then I will study here.
I can see in the wind what variables I have
I need a host, I need a user
I need a password and I need a
I need a database, let's say I need this and which one?
The port is running on port number 5000.
P is running
Let me try this Docker images.
I want to share images that I have a two tier back end
This is the image, okay, docker run to tear back.
And I want to run this image, okay?
My what-ifs for Butt Run
I want to run it in the background
I will add this command to my
If you want to publish port number 5000 then
Heine
Fifth note of musical scale
5000 colones
5000 so my system's 5000 and
The container costs Rs 5000 and I have to run that too.
Do I need to give it an environment variable?
SQL
Host is one way in Docker that
Whatever is the name of your container, you can call it that.
If you can enter the host name, let's say mine.
My sequel has a container, its name is My
sequel let's say so I directly my
I can put my sequel in the sequel host.
Now what other environment variable is host
Done My Sequel User So My Sequel Ka
My user name is root, okay?
root user now what is the third well yes when
also you are putting environment variables every
Han e ye for an environment variable
If you have to put it separately then Han e ma sicle
Host Han e My Sequel User then Han e
What
My Sequel
Password then Han
e ma sequel deb good my sequel password
was mine
Root and My Sequel DB What Was My
Deps okay this is done so basically I
I have run the docker run command which is on my port
Number 5000 pe karenge mysicle host achha
This will run this environment variable and
My two-tier back end, this is the image.
Now you will use the tag of the image.
If you have to give it also then the tag of this image is
latest so I'll colon latest here
I will give you this cool latest image with
Will work
If I hit enter, my flask is a container of water.
If it's running, docker will work. P.S. If you can see it here.
But the container is not visible brother
So if your container is not visible
This simply means that the container is an exit.
has gone or has been killed, if he is dead
If you are taking In Active or Acetate
If you want to see the containers, go to Docker PS.
Add a highlight, this will show all containers
hai enter to can you see re baap re two tear
The back end container died with a status exit
If you can check its logs then 582 DD you
Mast if you can check the logs then docker
Logus whatever your container ID was 582 DD
I checked its logs and now it says
There is an operational error unknown server host my
sequel what does this mean this means
My sequel to Is a Flash Cap is Unknown
He doesn't even know who my sequel is.
Because they are both on the same network.
Not there.
So what am I doing now
I will do this which is my container of my sequel
Funny touring name so I'm instead of
My sequel as a host funny touring dal ke
I see that my y is the docker run command
Funny touring in this this my because container
You have to enter the name of the host name, right?
There probably won't be a container named My Sequel
It will be called Funny Touring, try putting it in.
Now let's try it, I pressed enter and ran it.
Docker PS
It still hasn't worked brother, what does this mean?
Yes brother, this means check the logs again.
Do it with Docker
Checked the logs and found unknown server host funny
Touring brother, in the network of this flask, this
I can't find my sequel container, so let's go.
create a network and call it that network
Let me make it, so what do I do?
I will do it, I will do Docker PS and this
My sequel is going on, I will delete it.
I'll do it for now so Docker
Stop, I have given the ID of my sequel guy
And docker rm this stop and remove that which
My sequel is going on, stop it and
remove it, remove it, not just the container
okay, remove it and see how
I enjoy it, now what will I do, I am a mother
I will create a sequel container which I will name
I will put the host name my sequel okay than that
First Docker
Create a Network Create a Network
I will create a Docker network named
Two-tier network called a two-tier network
I will make it the driver who will use it
The bridge that the bridge driver will use, then its
what does that mean I'm a network
I will create a name that is
Two
Both these containers are in the tier and the network.
Let's get this network done
Two Tier Now I want to call both these containers as
How will I give you the network, brother?
Tell me how to deliver the container.
Brother
So the container of Docker run hine d my sequel
first run
There is a container in my hand
There will be a sequel named My
Sequel in the Hyfe Hine Network Network
I will give you
Tier ok network two tier now han e
Environment variable so Joe my sequel Joe
Specific to the container it contains
Environment variables have to be given like
In
Sequel
Route Pass
How was it at the World Flush Cup?
You can put it but for this my sequel you will need
You have to enter specific ones like route
I entered the root password now yes my
Sequel database so you can use the value of the database
You can put anything from let's to dips
put it okay put the deps now deps also
put what can you do now network
put the name put this is now my sequel
put the image of finish then docker run hine d
Meaning, that name should keep playing in the background.
Container's My Sequel Network Are Two Tier
that I have created and this environment
Let the variable remain and I will go away, now it is gone.
Same network I will give my flask
So look at the container of the flask
What is there in it, it is also a two tier back end
The name of the database is devops, my sequel's name is
Password is root, correct username is root
That's right, your host will come in which
If your container name is my sequelize
The name of the container is my sequel so its name
My sequel will come in the host and which
The environment variable is preceded by a hyphen.
What is the two-tier network, what will happen now brother?
Now my sequel is also two tier.
It is on the network and the database is also two-tier.
Meaning the back end of Flask is also too
You are on a tiered network, now you will enjoy it. Enter
Now if you look at it by doing docker ps
Your two-tier back end is running
Flash cap my sequel is all going on and if
I checked its Docker logs.
Everything is going well, is there any error anywhere?
I am not facing any problem, everything is going well.
I am here brother, how did this happen, this is why
Because Docker
Network LS when you do two tier
This is my two-tier network.
created if you inspect it
If you do, then Docker
Inspect to tier if you are using this with Docker
network
to the Inspect Network
Do you inspect the network? Two tier
Then you understand that there are two things inside it.
Containers are a magical whatever and the other
Wala My Sickle both from the same network
If we are inside, we can talk to each other.
Let's run this application and see.
If yes, then this application is running on port number 5000.
If it works then I will activate its 5000 port.
I will go to the D rule and port number 5000
Activated it, saved the IP anyway.
I have ruled it well, now I am in two
I'll go to instances running and I'll go to my
I'll pick up the IP address, this 35 p, this and here.
go to
colon 5000 in http hey re http
I will go and check
Enter and your application is running smoothly.
Hello friends let's make a totter application
Flak and Masal Hello Submit Nice Hello
It's printing now let's see hello two
Hello
Friends and whoever likes and shares me
subscribe what you are going to do
is that going into my database too
If it will go into the database then if it is in the DB
Only then do the above work, meaning if this
thing is actually going into the database that my
Front end with back end database
If you are connected then only you can like and share
Will you subscribe? Let's see Docker P.S.
Did
This is my sequel container now what should I do
Karunga Docker Ekk Hine IT Main My Sequel
inside the container of
Ghusuk hein u root hein p root whatever mine
I gave the root password and used the database.
Which database name should you use?
o Show data
If the name is Bases or Devices then use
Devops use database devops so only use
devops is used devops database
Changed Select Star from Messages to
This table name is messages.
Hey hello hello friends like share
Only if the subscription has been entered into the DB
Like, share and subscribe quickly
Because you don't know how to multiple through Docker.
Create containers and manage those containers
How to communicate using Docker
I've taught you this network.
Your Docker network is also cleared.
I hope so ok great so this was your docker
networking module so if you need Docker
If you understand networking then quickly learn this
Like the video and leave me a comment
Let me know if you understand things up to this point.
And then I can proceed further to the Docker volume.
I'm going to go so friends if in Docker
Talking about volumes and storage
This is a very important concept and it
I would like to explain to you by N
Understand the example like this, just like this
We saw it, hello, friends, like
Share Subscribe This is in our database
The data stored nearby is where is it coming from?
He is coming late from this application.
I put this test data in it, okay?
Put it and this data is also shown here.
Now understand that if I had done this
Docker ps this to the container containing the database
The container containing the database is called My Sequel Container
What will happen if I restart the Lets
I did it from Docker
restart this container id done ok i
Restarted the Docker container
Restart means that container stops.
Then it will start again and everything will be complete
What happens in that case if it gets refreshed?
Just look at that case, if I put this thing
I refresh
So here I can see my strength.
But hey, if this is closed then here
I can see my data but if I
put the item back
IT HAPPENED MY AL HINE Y ROOT HINE P
Root, this is what I did and used
Deps
Show Select Star From Messages
Okay, so this is the data I see.
Now instead of restarting it, if I
I delete it for example
I did Docker PS and this is my database.
EC iso I Docker
Stop this
End
docker rm what will happen if I do this
Tell me what is my data that needs to be restarted?
Pay was coming in this situation when this data
What if I remove the base?
If you tell me in the comments, I will
Deleted it, now it's in the Docker container
I run back ok bean container docker run
Name My Sequel It Runs Back in the Same Container
I do it, okay, run.
Now when I refresh it my
All data is gone and can't connect to
Server My Sequel Docker
PS should be running
Tha Docker
restart this
That's why it was showing can't connect to server
Because I deleted that server.
But it should work now, okay, when I
restarts the two-tier back end.
So ideally it should work, okay, work
But can you see the data judge gone data gone
Now this is a problem with Docker volumes.
End storage what is this it is such
There is a way you can do this through Docker.
Persist data for all containers
so that the container is accidentally
If it crashes, restart after stopping it.
If you restart it again then the data is stored
For example, like this is your my sequel.
This container has all the data inside it.
Now if this container is deleted then all
The data will also be deleted, so we
What do we do with this container that holds the data?
His/her
of the binder
Along with our host, who
Hard disk has its own file system
Let's make a path in it
Create a folder and map that thing.
with our container data
Whatever happens, we call that thing a concept.
The volume is fine let's say that thing
Volume and the command for this thing is hein
and or Docker
volume okay now this is me saying bye to you
I will show you practically how it is done.
from docker volume ls docker volume ls
whatever
Aegistify
SQL Data
So you have a volume called My Sequel Data.
If you have made it, then docker volume create my sequel
Data Enter my sequel named Data
The volume has been created, now this volume is by
Which location will your host be in by default?
So you can see that in Docker
You can see from Inspect My Sequel Data
If yes, it says that the mount point is sl ver
Lip Docker Volumes Ma Sequel Data Under
If you want to know how much volume you have created, then
My Sequel Data This is a path that you
It is placed on the host. Host means your
In one to one system, this is the path, if you
If you CD into it, you will see it now.
It is saying permission denied because he is a
The root user can access that thing.
Now I have to launch my container with this path
If there is a binder, how will I do it, let's show you.
If you give it to me, I will do a Docker PS. This is my
The sequel's container, for now, I'm keeping it
Docker stop my
Sequel's Containers and Docker are my
Removed the container ID of the sequel.
Now I want to do the next thing
I know what I will do, what I have done
I created a volume called My Sequel Data.
I'm with my My Sequel container by Bindy
I'll tell you how I'll do that
So the command that remains is docker run my
The one with the sequel container that was the run command so yes
Here I am, just a small addition to it.
I will do it, I will add it anywhere
where next to the network
I do it, hein and hein and means volume
I want to attach it to the volume to whom
My sequel data, this is my volume.
I want a binder for my host.
with whom my container slid inside it
Ver Sl Lib Sl My AL Bhaiya This Is For You
How did you know sl ver lib sl my sequel
What is it that your container lives in?
The data of My Sequel that resides inside is stored in this
of my host if it is stored in the path
My Sequel Data Volume Container's version
lip my sequel with binder now i do
I press enter, now this container is running.
Look, the funny thing is, now I'm going to restart it.
Docker restart your ya which flush
I have a cap, I will restart it.
I'll show you something interesting, now whatever I
I will create data through my flash cap that
I will tell you how the data will not be deleted.
Let me show you the complete practical, so here it is.
My flash cap refreshed it.
Test
Dummy data something deleted dummy data anything
I put it now what I'll do is docker
PS I will do it and this is my sequel.
I will docker r
M&
Docker should basically stop and rm
tha mujhko to docker stop and docker rm ok
docker stop container id end docker r
My so I have my My Sequel data
You blew up the container, did you blow up my container?
Data also
It will fly, let's see how it will happen.
What I'm doing is using my Docker
I blew up the data for the sequel, but now
If I drive AI, he will say that my
Sequel Abhi Dekho is saying my sequel
It will try to connect but it won't.
Okay, but if I do Docker
Volume Inspect
MySQL data in this particular location
I'll go and see it, so pseudo AU first.
CD that particular directory with super user permission
I get into the path and do an ls
I see that all my data is secure.
All my data is secured so now I
What will I do with the same volume?
I will rerun the container with a new tensor
I will make Docker run my sequel's butt which
Volume is na I use my sequel data
I will give you the volume and press enter. I will put the container
By doing docker ps which is my back end
I will restart Docker so that
He tries to connect back to the database.
I will do it, okay, I did it last time.
I did it like this, so all my tests
Like, Share, Subscribe, all those messages
They were all deleted this time if I
should I
So if you search then test dummy data age
It is stored, your data has not gone anywhere.
So this is how you can add Docker volumes
You can persist your data brother and more
Is there any way to store data in a Docker volume?
Yes, there is another way to get the money, what are you doing?
Do it, come out and create a folder.
MKD R Volumes A volumes named
Created a folder and inside it a KDI
Create a folder called Are My Sequel
A path where all the data of My Sequel is stored.
If it remains stored then PWD
By doing this you got a path home Ubuntu to
Volumes My Sequel What Can You Do Now
Yes, I know that by going to your projects
go into the tear floss cap and whatever you
Used to build my own Docker container
If the container had been there then this sequel one
my sequel so docker stop my
Sequel and Docker are my
sequel this which is your container if this you
Delete it, if you delete it and its path
Give the path to the volume that is there.
Even if you just created your current folder
Docker volumes can be run in two ways.
It works, one is the name volume
Docker volumes created by creating volumes
and the second one is path so if I
This is a simple run command, my docker run
where is this one
OK, docker run, yes this is the command
Where I wrote this my sequel data
What has happened is this, this is my sequel data.
ned volume and if instead I put
Do I have a home Ubuntu volume? My sequel is also
My work is done, enter it and create it.
Now if I do CD volumes
And inside that I'll go into My Sequel
So I have all my data backed up.
How cool is it that whatever data you get
You should hide it and mount the volume.
You can do it, okay, high fun and volume
You can mount it comfortably and this is
How Docker Volumes and Storages Work
Docker so if you're studying Docker Docker
Volumes allow you to save your data
This is a very good concept so I hope
Your module seven in which we
Data is saved through Docker volumes
I hope that is clear to you, so this
Tha Docker Volumes now understand Docker Compose
What happens is very interesting
The topic is why do you know Docker Compose, friends?
Because you may have noticed that I am very
I'm doing manual work, what am I doing?
I am again and again
I go into a two-tier floss cap then
I do a docker ps then I get someone from Lets
If you want to delete the container, docker stop and
I'm doing all the things in the world right
Like this, like this, I am completing it
I am doing everything manually and docker rm
If I am doing it manually then as a deps
Engineers let you do so much work manually.
You should automate as much as possible
What is Docker Compose Docker Compose is a
A tool that lets you automate things
I help him a lot, how so his who
If I explain the concept then Docker Compose
Basically there is a file, a confession file.
which is your wa ml file or email
or or else
yall yet another mark up language its full
If you need the form then you can remember it but one
markup language lives where your
And now you pass things by value
Why is it named Docker Compose?
It can store one or more containers
helps to make it so whatever we
People just did that docker build again
Docker run then docker volume so all that
Things Docker Compose does in a single file
This is the best part of it, so let's go.
Let's see what a Docker Compose file looks like.
So this repository is a two-tier flash
cap inside this I placed the docker compose file
There are two ways now, either I use this Docker
I can explain the compose file to you.
Or I can also give you this Docker Compose
file rm navi docker compose remove by one
Ducker Compose from Scratch
You can put that 3.8 because right now Docker
This is running on the latest version of Compose.
Docker Compose
Version two this is the latest one now here
You will enter services, services means that
How many containers are to be made and how many people were there?
How many containers were there in those services?
Can you show me one of mine for example?
Container Banana is my sequel
and the second container to be created is
Flasks of two containers to be made of me so you
Here you can use the command of Docker build.
Do you write?
In which if I have a docker file like
It is made from a build contact but if
I don't have the doc file so that
It is made directly from the image, so I
I can write the image directly here.
I'm going to use the image from My Sequel
Now in this docker run command you
what happens to the environment
Is
Environment Now since which second in the environment
Environment variables were my sequelize database
So a variable named my sequel database
so you can put anything from let's
You put a database named devps then
A My Sequel Route
A variable named password in which you
Rooted it with let's and what all can you do
You can do as much as you want in the docker run command
You write it, will you put it here like you
You can write volumes.
Which volume are you using in Volumes?
were my sequel data you were using
And that's what you were mapping with sl ver
Sl Lib Sl My AL Se
Correct, this is what you were doing
And then what else were you doing?
network networks were using correct
What was the name of the network?
Tier was the name of that network, it was this, now it is
And the port of my sequel is
A particular port is port number 3306
If it works then you can add ports in it.
3306 mapped with
3306 So you can do this too, so be it.
Went
Your flask sorry my sequel's container
Whatever information is there in Docker Compose
Your build command is whatever the run command is
I would have written the same in your value pairs.
So how was your flask just now?
Yes, this container also had a name, so you can also name it.
If you can put it then for example it
container name was what myas so its container
was also called My Sequel, so this became one.
The flask that was there now is not from the image.
It gets built, it gets built, it gets built
and there seems to be a context for it.
Context means where the Docker file is placed.
If so, this directory entry
Satay kuch to for example to
Tear back end whichever you like
You can enter the container name, then the ports.
which port does it run on so this one
The application runs on port number 5000 and
5000 has been done, now this application is something
So
The environment uses the environment now
Where do you find these environment variables?
You can get it from here for
Example My Sequel Host My Sequel
host is an environment variable that is set by the container
will be called My Sequel, then yours and
What are the environment variables?
Sequel's user is ok my sequel's
There is a user named root and then there is your my
The sequel will also have a password like the user is
So what is the password, that too root
If so, the password is also root, then it is my AL
DB is the name of the variable in the environment.
The names of the variables in Flask.
and here the name of the DB is devps ok
DBs were renamed devops and whatnot.
and your networks because you
If you want to put it in the same network then two tier
The name network also seems to be correct now.
The number of volumes you
Write down the names of those created like my
S K
Data volumes you have created are my
Sequel Data This is the volumes you created.
and created as many networks as
put his name too
What networks have been created?
If you create these two two-tier networks,
Just put its name and it's done and its
The value is done, so basically you have the same
I have confirmed it in the file that Sir Ss means
How many containers are there in total, so my sequel is one
is a container and a flask is a container so total
Two containers now my sequel ki agar bat karoon
So what will be the name of the container?
Which container image will be used?
What will be the environment of the container that will be used?
Database name devps root password root
What will the ports be 3306 volume what
This will remain and so will the flask ones.
for the application or for the container that
The build will be done through a Docker file.
So the name of the context dot container
Two-tier back end or whatever you want
You can use ports, this port environment.
I put the environment variable network and this
How did you make a great confine?
Given that this is the entire process for running containers
Confine is Escape Colon Duplicate Enter Now you
Docker Compose is also installed on this system.
You will have to do this with a separate tool.
The installation method is very simple: sudo
AT Gate
Install
Docker
compose v2 so version two you have to install
Because it is the latest, I entered it and
It says Docker Compose is installing
How to unpack setting up Docker Compose v2
If you install it then basically you have EM Docker
I wrote the compose file myself from scratch and
Now you're going to run it, let's run Docker.
compose up this is the command to run the docker
compose file whatever you have written enter now
It says additional property version is not available.
Aloud hey, I probably misspelled something
made a mistake
Is
And I do this every time
Okay, the version is done, now just docker compose you
Try it now, you shouldn't have any problems. Enter
See
building means which is the docker build command
It also executed the command that created the image.
and the docker run command that follows will be
With which the container is created and the command is also run.
If he gives it to us again and again, we will give four different
Running the commands docker build docker run docker
build docker run has been replaced with
One Single Command Called Docker Compose
Up automation, everything has become perfectly sorted.
great how great very
great very much
Correct
Superb but look what the problem is here
What's the problem with my sequel yet?
It is not built and is saying 0 tier back end
that can't connect to my sequel server
Basically a two-tier back-end container
It was made before the My Sequel container.
It has happened, which is a mess, this should not happen.
If you want, control it and do it gracefully.
Stop it with control C.
It goes unlike that Docker, well yes Docker.
Even if you press Control Q in Attach
If yes then it gets quit so this is done now
What I will do is use Docker Compose.
I will write that this one with my flask
container that
Container
Depends on which my sequel so unless
Until my sequel is made, this is my
Don't become a flask guy, but do this.
Let's see if there is any problem or not.
If we try this, we can docker compose up
Enter is saying that he is still saying that
Let him start my sequel first.
done and the entry point was created as soon as
He became the one who had two tier back ends
I started it but where does the problem arise?
You know, the container for my sequel would have been created first.
Then after that there is a two tier back end.
The container is formed but my sequel's which
Container accepts not ready for
He makes connections later, meaning until
Our My Sequel is not completely ready.
We will not consider it complete until it happens.
If you can say so, then you will get one thing for that thing.
It seems that what is called a health check
In Docker Compose you will find the My Sequel ones
Health checks have to be included with the container
What are health checks?
It happens that you can enter the command to test that
For example, if I am in my sequel
I pin the local host to myself
with words as long as it's localhost
until it pings
Retrying every 10 seconds
Retrying does not setup retransmit
[music]
Pushing is happening my sequel admin ya which is mine
My sequel is to try to ping him.
Doing routes and routes on localhost
with password until it passes the health check
My sequel's container up
Similarly, you will not be able to use the Flask application.
You can also enter health check in
Health
You can deposit checks as long as
You don't do that my sequel admin because
Right now in the flask, there is a little bit of my sequel.
There is an admin but you can do this if you are a local
Host 5000 Pay until status code is 200
Don't light it until it comes or it will happen
Some till curl local hos 5000 health right
Keep exiting until it comes from
when it comes right
If it goes then run it, it will basically be healthy.
What is a check? It's something like test conditions.
Just to make sure your container is running
is or is not running if the container is not running
So what can you do with that container?
You can restart it, restart it also by one key.
If you do it forever, then that
What happens in case your health check
Did not pass This health check did not pass
Your container will restart.
You should put the same thing in my sequel also.
You can do the same thing in my sequel also.
You can enter that if you pass your health check.
If it did not happen
restart always restart ok
How true is it that you have completely
Confession is set with it
that the first container
Make mySequel's container name mySequel
Pick up the image of my sequel
Database name: debs; put root password
Root Dalo This will store the entire Dalo volume.
Give him network also and every time
Restart until the health check passes
and repeated health checks of 10 seconds
Keep retrying five times in the interval
If you try retrying, Docker
compose up enter now it's saying property
Health checks are not allowed at all.
There is only one check, right?
Instead of health checks, it's a health check to
This extra feeling hit me so it
health check ok escape colon double k done
Now I will return docker compose up and I
Will See That If This Works
Enter OK, you are looking at two-tier applications.
Restarting here
It was not found but that operation was after error
It didn't stop, it kept restarting.
Finally, this is now working if I now
I'll go to my server and restart it.
So you can see it is working and if I do
Hello
Hi
Bye
Bye something
Also if I do this and go here and
I should also stop the container. I should also stop the container.
Let's say I stopped
I removed it, I destroyed everything
I saw this and I am stopping the container.
The whole butt will be so easy to operate.
Do you know how easy it would be to be just a single person?
The command that Docker compose up ts it just an if
I'll write it down now like I stopped it.
So this won't work, this side can't be reached right now.
But if I just write the command docker compose
up and this is next to docker compose up i hine
Should I put D? D means in detached mode.
Enter container My Sequel in the background
Running container two tier back and running end
He will also do all the health checks and everything.
Docker will do everything, try both.
Restarting the containers is running
See if your data is also safe then you can keep the container
Destroy it, do anything, your volume
Perseid is and with the help of Docker Compose, we
With the help of IM Docker Compose you
What did the container do?
Creation Image Building Health Check
dependency check restart check network
Volume: Everything in one file
put in the command And This Is How Docker Works
Pose works so amazing right that you
A two-tier approach using Docker Compose
Created the application and
Deployed Three Tier
Tha So Project Is A Three Tier Application
No, then there will be another project in it or
It will be different, okay, so I hope you like Docker.
I also understood the compose module.
Let's quickly recap what all happened.
It happened to you, you should clean it a little.
Because this module looks dull and very strange.
It seems it's quite crowded here
If you have understood everything till here then
Tell me quickly in chat that you understand everything.
We'll see if it's coming or not.
We saw in Introduction to Docker that
Why do we study Docker and how do we study it?
Have you seen the complete architecture of Docker?
Seen how to install Docker locally
How to install in AW
Also see how to install Docker
Images Docker Containers Docker Networking
Docker Volumes, Docker Compose, all these things
We saw almost two and a half hours
We have covered all these things now.
Let's understand what a Docker Registry is.
Consider these Docker images as two-tier.
floss cap to tear back and floss cap and
Java app all these images are in your local
If you need to put it on a server or
to store in a repository such as
Docker Hub then gives you this image properly tagged
You have to do it and push for it
You may also want to use the registries Docker Registries or
Repositories are needed and before that
I'll show you what's useless
Delete any images and containers as well.
How can one do this with these single commands?
If I tell you then docker system prune
What happens with this, whatever your
There are containers in the system that are not running
All those who are stuck like this
There are images that are not working as well as
There are volumes that are not being used.
Docker will prune the system if it blows up
Warning this will remove all the stopped
Containers All The Networks Not Used All The
Dangling Images All the Dangling Build
how do you want to know
Yes I want to continue and look he
I removed all the build caches.
But Bhaiya then how to remove the Docker images
I will do this flash cap and it is very simple
Docker RMI RMI means remove image
Now whatever image ID you have in the image,
You can select it carefully and remove it.
Okay, all your images have image IDs.
You can pick him up and make him disappear
Yes, but brother, if I have 500 images like this
If it is there then it will take that much time, right that much
It will take time, what should I do in that case?
Bhaiya, in that case there is a command, I
I do the same thing as Docker in general.
remove all
Images are like a command in it
Docker has images and why images and why
Meaning all the images that have IDs
bring those images so if I just
Write Docker Images
I will get all the IDs, now what will I do?
Docker R
mi docker r mi remove
Images Forcefully Hein F Forcefully and
I've put the command in parentheses inside the dollar.
What will happen with this? First, this command
will execute Docker images with a
The output of this will be Docker RMI.
I will go in and bomb all your images.
Docker
All images will be deleted yes this
The image is still running because of its
The container is a stopped container so
It is kept there, even the LCA could have blown it up.
right na so docker ps hine a
This is a two stop container, good if you
If you want to remove stop containers, remove them.
There is also a Docker Compose command of Docker
compose a
Removal is fine no Docker Compose is down
Perhaps
down docker compose down yes correct then docker
What happens to compost down as many
There are containers, it stops them and
deletes okay so one command up one
Command down and then stop and remove it.
It gives so easy that if once
You understand Docker basics and then
Understood Docker Compose, then you can use Docker Compose
How much can you get all the work done through this?
right and now if you have docker rmi
If you run the command, all your files will be deleted.
And if you look at the Docker images
So you won't get any image, I understand.
Coming to how to delete images
how to update images
Docker Compose Up via Docker Compose
And if you write hype ha fun next to it
Build Docker images forcefully
builds back pulls back
Docker commands are many when it builds.
It is very interesting, there are many commands.
There are many interesting commands.
ok let's go a lot
Great, I hope you get the idea.
That it will be easy for you to learn Docker initially.
You will have to work hard later in Docker Compose
You can automate things by putting another
The thing I would like to show you is Docker
P.S. We did it and this is my two
Tier Flask is Cup I did this with Docker
Attach this, now its screen is attached here
since if I do it here then here
Pay this attached if I
press control q or p
If I had given it, it should have been removed, but never mind.
Generally control p attach detach from control q
But I think it's in my terminal.
It is not happening but anyways you can docker ps
by doing or by doing the same
DirectoryEntry
Control-Q doesn't do it, but it seems it does.
Not working but it's fine no matter what
You have a second backup that someone else
Access the same system by going to the terminal
You can, okay, that's it, stop now.
Brother, what is the second concept, the new concept?
Docker Registry as I told you
Docker Images
This is the image of the two-tier flask pop.
It's in your local right now I want
Push it to a repository that is Docker
hub's repository so what I will do is
First, make sure that Docker login works for you.
Making sure you login to Docker
You have already mentioned Docker earlier.
Logging in with your username and personal access
You have to enter the token here, then what do you
All you have to do is tag your image.
How to tag an image Image tag
What does the Docker image tag mean?
It means your old image which
is a two-tier flask a flask that is old
This is the latest image, you can rename it.
Yes, you can rename it and if
If you want to keep the image locally then save it like this
It's fine to write a normal name, but if
If you want to keep the image on Docker Hub then your
Username is Late Train with Shubham Yours
Whatever username is before the name of that image
So I mean I need to use the Docker image tag
All you have to do is rename the old image and
Enter the name of the new image as Train With
Shubham Slash Let's new image is called Two
Tear back end to tear back end latest then
What was the name of the old image Two Tear
Flask Cap Flask, there were some such names now
What is the name of the new image Train with Shubham To
Tear back and latest enter now what happened
which was the old image
Docker images that will be as it is, but
A new image has been tagged with the name
Train vs Shubham two tier back and now this which
I can docker push this image.
Kidhar train v Shubham two tear back and colon
Latest Tag Enter Watch Now Push It
Where is my local to hub P so its
What does it mean if you have to go to your local computer
or from your server
I want to push some image to Docker Hub.
If you want to post, you use Docker Push.
And if you need to pull an image from Docker Hub
If so, you use Docker pull now.
This push has already happened here, I'll go
Ch Is This Docker Hub on your Docker Hub and here
But I refresh
I'll see that my two tier back end is this image
The last push less than has reached here
A Minute Ago How True Now Once Image
Do you know what I can do if I get there?
I can simply say in my Docker Compose
I am sure brother, you build the image again and again
Don't build what you were doing
Repeatedly fetching images from the build context
Were building, don't build it, instead
Bring the image another way Train With
Shubham Slash to Tear Back End
Get the latest directly from Docker Hub
Because right now we have Docker
Have you pushed that image to the registry?
So escape colon double k enter docker
compose down
and Docker Compose
Up
The image is that it is not built locally anymore.
What is happening is that it is fetching from Docker Hub like
This has brought zero in your image right now.
Downloads were refreshed
I will do it, I just downloaded it myself
That's why he is not coming but if you are also two tier
Back end will run this thing two tier back end
It will work great
It will work great if you want to try it.
If you can see, I can do something.
I'm going to give this image a two-tier back end.
I pull it to my Docker desktop. See
Docker
Pull train vs shaban to tear back and latest
So I can also install the image from Docker Hub in my local
docker pull train vs
Shubham two tier back end is saying incorrect
Username and password oh my docker here
If you are not logged in, try Docker login.
Can
Ho Username TrainVShubham Password Personal
Where was my access token somewhere around here?
Wasn't it? Yes, here's my personal access button.
generate it
New test to some name
Two
And you can generate token so easily.
You can authenticate well and do local
I will authenticate myself brother, I am done logging in.
Now I am going to pull the train from Dockerpool.com.
I will do this to tear back and latest aa
Once your image is created, tag it.
do push that to Docker Hub and now that
You can now use my image anywhere.
I have images from all over the world but can
You See Docker Train Wish Bun to Tear Back Key
The image was created 7 minutes ago and it
I've got it, how cool is this Docker?
How cool that you can docker compose docker
Images Docker Hub Docker Push Pull
You can automate things, it's so cool.
That's what I said at the beginning of this video.
I gave an example, right, that Docker
what happens what does docker say it is
Chal, it is running on my machine, but it is not
Running on client machine now tell the client
That brother, you just have to do docker run and this
The name of the image is just over and its application is there.
That is the beauty of Docker now.
You must be thinking that brother, I have
Windows is in Windows
Docker Desktop is what happens in Wiz.
You have one
This is the Docker Public Registry if you want.
So you can make that thing private as well.
hai multi stage docker builds hahaha bhaiya
What are multi-stage Docker builds?
Please explain it to me in simple language, I will understand.
Let me try using Docker images.
Look at your image
from Let's which was the image of its Java app
Which one was not Java?
No, if you remember we had a
Do you know which P it was that was made, the flask P
ECS Remember this one Flask ECS
This one, whenever I build it
Docker Build
Haiti
flask
P latest dot so whenever I built it
I did this one which was my python
Picks up the base image of 3.7 Now Python 3.7
The base image is a very large base image.
If it happens then whatever comes out as my final image
Isn't that a very big image of the application?
Ban ke aata hai who is a very concerned
thing that there are so many big things in your system
Images are there now, so this application is very
The blank application is a very simple application.
But tomorrow when this application becomes very big
If it goes then its image size will also be very large.
If it happens then let us see what our
Flask Pup was what we just had.
See what the size of its image is.
Let's see how long it takes to download
If it is taking time then where the size of the image
It will take some time to download if it is large.
It will take time to upload and create the container.
If it takes time, it takes a lot of time, okay?
So let's see exactly how big it is.
The image is ok
yes
Let's see, I think something like 600, 700
If the image is of MB then Docker
images so my flash cap is around
No
The pack is 1.01 GB, can you understand that this much
Big Image So What Multi Stage Docker Build
Divides your image into stages
Lets see the image is created from the Docker file
What makes a Docker file a Docker file
It becomes yours
The image is the image you have now.
1.01 GB has such a large image that
If a container is made, it will also be very big.
Analyze your Docker file.
what happens inside it that from
It happens that from that, he picked up a base image.
Let's see the base image now.
The image is of Python which is
994 AB so your base image is the same 994
Now it is your code then
Snip then your requirements files and
All these libraries together have so many GB
So if I were to measure the size of this thing
If you want to reduce then the biggest one is
I can reduce the base image to that.
Yes, but sometimes what happens is that this base
image is v im docker file ye jo base image
3.7 Sometimes it is required
To install libraries, every
Sometimes we cannot use small images.
Requires library installed
But only the library to
Required to install stall
to run libraries or
Then to run the application,
Why do you need a larger image? What can you do?
every time you pick a base image
that is a
stage okay this is the stage so like you
From
Wrote python3.7 then in the whole code
If from is not written anywhere then this from
python3.7 this is a stage
As much as your base image can be in one stage
The size is that much plus the total size in front
If it happens then your total size right now
The base image of stage one is
If it is of 994 AB then the total size will be
Around Ruffle
1.04 GB will be fine
Now this base image is called
I'll give you Edge Edge, meaning nickname Alias ​​Edge.
I would have written the back end or the builder.
So I named this stage
Builder Stage So what is Builder Stage
This is just the stage in which you
Libraries and packages will be built and
Then what I'll do is I'll go to this builder stage
I'll stop it here and start a new stage
Let me create stage two in which I will create the base image.
I will use the base
I will use that small base image.
From
Python
I will use a 3.7 slim small base image.
I will use the slim one which will be the size
Around 400 AB me B size hi choti le
What will I do if I take it
So far I have everything installed.
And the one that gets installed is the site
If the package name is installed then I
I will create a workaround named SL app.
and I copy
I will take my upper stage, right stage
One copy hein no
From
The builder is at the upper stage.
What do I have in work?
DirectoryEntry
What else is there and I have requirements
which is already installed once
Once the requirements are installed, it will
What is the need for a large base image?
Slush Requirements
usr sl
Local, whatever, wherever Python packages
Where are the sites generally installed?
If installed in packages then this
Particular location remains
Have us r local lip python site packages
this particular
The place remains
So I'll copy this from here.
Bhaiya this is the site packages for python3.7
I don't understand what site packages are.
There is a base image with python3.7 in which you have
The packages installed are
Stored in a particular location
Packages Do you only mean packages?
It is there, you don't have to install it.
It is already installed in this stage
What do you do with those packages?
You copy from the builder and then whatever you
code
You copy that too from your source.
You also copy the code from the host machine and
Then later you run it and it's over.
Now here you need a code, yes it is
Why because the copy only meets the requirements
D
In tx1 we only have the requirements
We are installing this for that big
I wanted an image but once the requirement
It's installed, then why do we need a larger image?
Then we took the small slim image and
It contains the complete package of the old stage.
We copied all the packages.
All copied done escape colon double k
Enter brother, do you understand what you have done?
He did not come, explain again.
I'm going to look carefully at the Docker file.
What does the file do? It gives instructions.
Now the base image for creating the image
Base image this from python
3.7 If its size is too large
If it is large, so will the size of your final image.
Agri will be big
Now why is this big image needed?
to install packages then
Get image Large image Install package
Do it, then there is no need for a big image.
Then you take a new image from Python 3.7
Slim now in this image its size 400 AB
Whatever amount of something will remain in this image
The package of your old stage was
Just copy the installed package.
You don't need to reinstall it
Copied it, run the application and do something.
will go show run
Of
Docker build hine t
Flask now this one image name a little bit
Keep the flask small
Mini Dot So Its Image Name Flash App
Keep the mini
Now look what the stages are doing in it.
Look how many stages have been completed.
This is non as multi stage build one stage
With your big image and a stage for you
Now you people will see it very well with the small image.
You will be surprised if I do Docker
Images to Flask P Mini is just
142
MB flash cap big which was 1.1gb so
Basically you have created a file from a 1.1GB image.
Multi-select your images with up to 140 AB images
Compressed it with stage build, but brother
How is it possible that from 1GB you can go up to 140GB?
That is the power of cashing and
Multi stage build because there is only one
Your stage is not being used.
Divided, used a new stage
Yes and the slim image is by
The default size is something like 140 GB.
I might have written 400 here, but
That's not 400
He lives very little, how little he lives
Let's see, it remains 125, Can You See 3.7
Slim 125
So the base image of stage two is that
Just 125 AB which will give you the final product.
He came and he will come out, what about 140 AB
Isn't it cool how you can get 100 GB from Day 1?
Till now you have created your image in multi stage
Compressed if you enjoyed it
Just tell me by typing boom in the chat.
Because we have just finished
Our Multi-Stage Docker Builds
How much are multi-stage Docker builds?
Interesting was just monitoring and logging.
in Docker so like you did Docker
P.S. Now your running any container from lts
If so, Docker runs in the same way as it is now.
We created a mini app, try running it.
Flask A Mini Latest Okay Flask A
Mini should be run on port number 80
Run to port number 80, this should run ok
Welcome to Touro is going on now let's call it
If you want to debug then docker ps you
and go to this ID and open Docker
You can check the logs, whatever your logs are
The logs are there, you can see them in front of you if you want.
Another thing you can do is to add as many logs as you can.
You can redirect to a file
The command remains no
hoop no hoop no hoop if you would know no
What does hup do? Any command
Runs in the background and outputs
It also transfers it in one file.
So from the let's I did
Docker
Attach and ID name, oh my god, this is too much
has grown up
So so let's docker PS I did this
My ID is no
Hoop Docker
Attach ID name and em percent at the end
I put end and pressed enter, now look no
Hoop Ignore Input and Append Output to
no pad enter now my pm is running now i
Whatever I do here, let me start here.
But did Slush Health so here comes the server is up
end running and I did
Slash
Err or Slash Thanos
Whatever I did, all this data was hooped out.
is being stored in a file named can you
C HTTP Health Error Thanos
I enjoyed that you were able to collect logs.
How can you collect logs from Docker?
No hoops ahead for containers to attach Docker
Command M percent now whatever I do here
Let's say I followed this up with Thanos is bad like this
I have written something, even that is for you.
This is being collected in the logs here
In this way you can very easily monitor and
You can log your Docker containers
Look, are you enjoying reading Docker?
Introduction to Docker 3-minute course of one and a half hours
You are seeing a great video for hours.
Things are falling into place the way Docker does.
Containers are fun, so is Kuber
It's going to be fun in the Nities too and if you
Wanna do it like I did Docker in One Shot
Made Kuber Nitties in one shot if you want
If yes, please comment on this video.
1000 likes of I'm pretty sure you guys
You will do it because 1000 people are doing this
If you watch the video, even those people
If you like it then your target will be achieved.
If I go then let's aim for 1000 likes on this
Video and I after Docker in one shot
I will also bring Kuber Niti in one shot and
Tell me in the comments who else is like me?
If you want to see one shot videos from here then let me tell you
I will give you an introduction about Kub
Kube Nities and Docker in One Shot
First of all, understand how it works.
What is Kuber Nitas, what is Kuber
Nits so right now in Docker you read Docker
You must be having a lot of fun reading it, friend.
Docker this is Docker that is Docker in containers
You can also analyze the logs and Docker
compose is so cool docker multi stage so
Destruction was a lot of fun, but one of Docker's
There is something that you might find quite funny.
Docker We Go Directly into Production
In production
We do not use only Docker.
Containers are not used in production.
Why do you know, because like I just did
Docker PS Simple sa if I docker
Two characters of the container ID for Stop Fur B
I will also write
If it is not gone then it will end and this Docker
If after stop I write docker rm
If you remove Docker, then whoever moves around will use Docker.
If it is a container, its data will be deleted.
Everything will be deleted, everything will be deleted.
This will be exited, so Docker
Chances of container crashes are high
There are more crashes in production
Docker containers are therefore
We do not operate containers individually.
In production this is why we use Docker containers
what do you do
orchestrating
Hey brother, what does orchestra mean?
Then watch Hera Pheri, it is full of fun.
Orchestra stays right complete great one
He is playing a song like this on a mic.
There is a drum playing just like that
Kubernetes is one such orchestration tool.
which manages the Ducker containers that a
Docker container killed if it crashes
The second Docker container is up immediately
Go get a container with plenty of storage space
If it is there then allocate that storage and room.
Two memories so that it can be used within certain limits.
Containers run sometimes you will see us
It's so cool to open amazon.in
[music]
amazonline.in comes in handy if you
If containers are crashing then those containers
auto-heal and if traffic increases
If it goes, it also auto scales to five.
Container runs are being run for 100 people
Traffic has come, five has become 50 based on
Some criteria to Kuber Nitus
Docker containers are running in the background
They just keep going this way
that they have auto
Scaling and Auto
Healing capability, auto scaling and
Has auto healing capability so that if
Docker container crashes even in production
I want it to automatically get up and running.
So if you want to read grave policies then grave
Nitties have some things like pods
So what are pods? Pods are such a unit
resides inside which your Docker containers run
They are living there but now this pod of
One or more docker inside
Containers can run now I get a lot of
In case you want to make pots, you need to deploy
had to make
is a collection of
pots
Reps Deployed You Have to Make It
Okay, now this is deployed, you can back it up.
You make the front end separately and deploy the end.
Do you make it separate or do you make the database separate?
to get those diploids to talk to each other
You can get the network you need for this.
You connect us with the service
Deploy to users so if you have an
Accessing those deployed to the outside world
If yes, then you feel the service
There is routing in that too, so you have ingress
routing will take place
So all these concepts, if you
If you want, I can give you Cobra Nits Cats in One
I will read it completely in short.
Let me know in the comments, this is it
I gave myself a small intro that
How Docker works in Docker Kubernetes
It is Kuber Niti, that is the entire framework.
The entire architecture is what your Docker
Limits prevent containers from crashing
Lets the scale heal
and we cannot run Docker alone
Therefore, Kuber has to be run in a cluster.
Multiple dockable containers are fine on this one
Easy Kuber Niti Zero to Hero or
I will read you Kub Nitties in one shot
Now let's talk about our projects.
So friends, if we talk about the project
Talking about this project, it is deployed
Application Win with Annex and Ma Sakal it
Will shine very true on your resume
Because Nx is a tool that
Industry standard tool for reverse
Proxy My Sequel is a database that
Production grade database remains very
All companies use it and the web
Applications are generally available in many companies today.
They are asked in interviews
Requirements are also product based
Web applications are generally used in a company.
So now we are going to create a web application using Enix.
Pairing up with And My Sequel
First of all, understand what a web application is.
what is it and what is anx and ma
What is a sequel to a project?
If you understand architecture, then the project is
That's basically your web app that runs in Jungo.
It is written now that such programming is being implemented
Language is a framework that
The language it uses now is jango's
from my sequel database and this complete
The application will be served from engine to engine
This is also kind of using three containers.
If you have an application then your first container
The first container to be built will be that of Anx
container the second container that will be created will be created
your Docker's sorry Jango container and which
The third container that will be created will be that of My Sequel.
Container
Now this is the container of my sequel, this jungle
will talk through the container of, in this also we
People may have to set up a network
Can he have to install a network?
The most important thing is that and that's what Angie Nix
If it happens, I will tell you its work.
Like whatever applications there are for Jungo
Or any web applications that are
Let's move on to the port number.
8000 ok now we will run on port number 8000
8 Maybe someone else in the 1000s
Routing is going on but that routing
It should be done internally, not externally, port number
Have to give so that internal routing can be done
A reverse proxy server is a reverse
proxy proxy what does it mean
that you give them a proxy pass so that if
Your URL came up as localhost 8000 or
If your URL is slpup or slushhome
If it comes, please redirect it here internally.
Lately I have posted my post on my website.
from IP LETS
3.28 7.1 Whatever it is and beyond I
If you put a slash, the routing to the engine server will be
If there is a slash, then it will be written like this
Redirect to Jungo if it is sl db
So please redirect me to my sequel.
Okay, I understand how much
If you are interested then this is the engine setup.
Jungo setup karna hain ma cycle setup karna hain
So I have created this application in my Git.
It is placed on the hoop, what do you have to do?
git hup
google3 All these links have descriptions
I will put it in boy Shubham 153 this is my git
The hub is where you can find all the projects.
I'll go and see how many projects there are.
Here Expense Tracker Notes Page 2
English Two Tier Floss Cup Spring Boot
Bank up 90 days every type of project here
You will get the notes, click on this.
Okay, now click on Jungo Notes app.
This note paper here is very nice.
This is a powerful app, we use this app end to end.
And if you are going to build then code this
Take it and copy its URL here.
And going to our instance, how many of our
Projects have become Falas Cap a Java
pop two two tear floss cap third and this git
Clone toother flash cup no junko notes
So this will be my fourth project today.
Okay, I have done this, the notes have arrived, now let's look at this
Understand the app Jungo Notes Understand the app
what are the things in it
Where are these projects from?
I will show you the notes here itself.
I am telling you about this my notes.
There is a front end, so the front end is this
It is already built, so its front end
The build that has been made is already made.
This is its front end ATML
CSS files are already CSS files
It's there, you can restore it if you want.
Yes, but this is already made.
What is important is its back end.
Nuts Pop, this is the back end of it, where Joe
The back end is written in Django. Now it has
The best part is when you try this app a little
I explore you the way I explore you
But still, if you
If you have curiosity then you explore.
settings.py This is the file where
This app has complete confidence in it
The templates are given in My Notes
Sl build so now I have given you the folder
I showed you the My Notes front end in it.
All this is from the build that is there
html4 If all these things are given then you have a
A file named Dr. AV will also need to be created here.
You can see this test db root root this this
You will also need to create a file named dotty env
from where to connect to the database which
Enter the required environment variables here.
If you have kept it then there are two ways either you
You can also pass environment variables.
Directly or as an environment variable
Can you also pass the Dr. Envy file to me?
I will show you both things, let's do this right now.
If we have cloned then you understand
gone na that nuts a is basically your back and
My Notes is your front end and the name NUX
is the folder where the confine of Nx is located
If it is kept then what is the confine of Inix
The confine of the engine says that if
If somewhere on this server on port number 80
also http jungo container jungo container this
The container will be named after our back end if
Its port number is 8000 this URL is somewhere
If it also comes then it is reversed through slash
proxy kareega means what does lets do
from this is my instance okay this is my
instance is if I do this my which instance
This is the IP address of the
slash colon 80 port number 80
If I put a slash, where does it go?
This will redirect This will redirect
This works on our internal Django container
If it happens to NX then people will do all this too.
So I gave an overview once that
Which folders are there, okay API that
The folder where all your code is stored
Okay, now the code is done, clone it.
If you see the Docker file, click Docker File OK.
a v docker file so what is its docker file
Speaks from
python3.7 work directory / back end copy
requirement.txt to ai back end so what is this
Firstly, he is doing the requirement and TT.
Where is this person copying his
The working directory is created and then
What are you doing? Update your system.
updating your container
He will upgrade what we have done to
It's the same as it was in Tier P, Li My
will install the sequelize client then pip
Install my Sequel client and so on
will go and install the requirements then
Sorry for the remaining code back end.
The port will be copied to the working directory.
number 8000 will be exposed so the docker
If we had created the file earlier
Let me show you what we did with this
The first app we created was our two-tier app.
Flask Pup This was our two tier
If you open the Docker file of Flask
You will see that you will find almost similar things.
python3.8 took a slightly slim image
All these are required in the work directory.
Installed packages that meet requirements.
Installed it, then copied the code and ran it.
I had given it, it is right here, we just have to run
We will not do it because we are
Going to serve through Ajax
So, I'll just keep it to this level for now. That's it.
Gone escape colon db enter so our Docker
The file is in front of you, if you want I can return it.
I can also create it but I have created this file
If it is made from the same then it is almost
Similar is fine
So what I'm going to do now is to create this Docker file.
This is my Docker file, I will build it
How to build
docker build when t
notes p and dot notes p dot and enter this
By doing this I can use the Docker file of my Notes app.
I will build it, okay let's take notes.
Docker file is being built
Nice very nice
Ok
Good
Come on, let's keep building this work.
directory p all this that stuff done okay
Now you understand what I have to do
Three containers to be created One container to be created
What to create a container of? Ajax
We have to make a container of wars and another container
I want to make my sequel, it has been built.
If you have an image then you understand the image docker file.
If you must have gone, I can tell you again.
That's all this Docker file does.
Copies the application to its container
Whatever required libraries are there in
Install it and that's it
She does, okay, what's most important is
This is the Docker Compose file where the entire engine is located.
And all this is written but brother, this one which
Docker compose file isn't it what we want
You write, let me write it, then remove the new thread.
We will compose this and remove it, okay.
Now that this Docker Compose file has been removed, we
People are going to build, let's build.
yes em docker compose dwa ml ok docker
We're going to build Compose.
Now whenever you are building with Docker Compose
First remember to put the version two version tha
Let's put this 3.8, now whatever you want
If you want to create a container, add its services.
Services let me get the first container which
I want to make that banana of Enx which is the second
I have to make a container for the wars.
Or if you write anything in my notes, then Jungo
and the third container that needs to be created
I want to make my sequel okay so as many
You also have to make containers for all three of them.
Write the name that these three containers are to be made for me.
Now the container containing Ang Nix is
From which it will be made or it will be made directly from the image
Can be built or can be built from a Docker file
So save it here double enter save
Done, now look at this Nx folder.
CD do CD
Nx This Nx folder has two
The thing is Docker
The default conf is or whatever the default conf is
How do you write brother, please simplify it.
Enux
default conf file just search it ajax
Default conf file on the bus Beginner's Guide
Go to enginex.org here you can find that
How to write a confession file about all of them
I will just take all the details from you.
I have to write this part in small words, sorry.
Server that tells about the server
What should be the server's confine location?
Meaning URL if slash is in your URL
So redirect the proxy pass
What do these people say about this particular local
Host 8000 Beyond whatever URL you enter
redirect so it does that if
If you want to add any images, do that.
Two more and with the help of this I made two tier
Create an encx file in Flask Pup
not ter sorry apna jango nuts p me a
I have made NUX's default conf in it.
You just need to know what's important.
Listen 80 Listen 80 means whatever your engine
The server will listen on port number 80.
So first of all create an AJAX server
Let me show you, look at the Docker file.
from Enux
1.3.3 Alpine Copy Default Copy to T
nxk dd.com so this is the path this is the path
in your container and this dot
default.xml would also work, so would yours
It will work, you will see this IP address of yours
You will go to here you will go to the IP address
If
HTTP will show you Welcome to Nx
It is so easy to use NX. Welcome to
The engine has arrived but what do you want?
As much as this Docker run command is required,
I definitely need that engine image plus
You also need to copy your fashion file into it.
That's why we have written the Docker file
Ok
so it's stuck again so we have a
This is the screen for backup then docker ps
And
docker stop this and docker rm this ends then
This will stop that container okay which is running its
There is an engine container that will just stop
Ok
let docker stop f2 f3 ok done stopped
So this engine of yours is a site that cannot be read.
If it is right then your engine will be boosted in this way.
Now what is extra in the Docker file?
This is from NX, meaning that base image pull
It will do it and then copy it as default.
If Confine has so much work to do at this place then
We need to build this thing through Docker Compose.
If you want to do it then I
Docker Compose now what do I have to do to Engine
I want to say that brother, what do you do, you build it.
You build and whatever you build
context which is the build context and
Pick from a folder whose name is
dot sl nx dot sl means this
corresponding directory entry in the folder
Pick up the file and build it now from Engine
Enter the name of the container container name and name
You can put anything, put NX, okay.
This has happened, now who is that NX?
It runs on port number 80.
If it works then which ports do I need 80
Colon 80 These are my ports now and
What I need, all this has been built.
Now what I need next is that
The Annex container restarts.
If the computer fails accidentally, shut it down.
If it shuts down and restarts, it
If the container is restarted as well
Restart Always to Restart Always
I restart my container
ok now that's my job nux done
Done, finished, I'm done now, I'm leaving.
My Django container depends on my
On the container of the sequel, first of all I will
I'll sit down to write the sequel's container, okay?
I will write Jango later, now my sequel.
Let's sit down to write a container of
The container of Sequel has no Docker
If the file is not there, it will be built from the image.
From which image is my sequel titled image.
The build that will use those ports will be
Which ports will it use?
will use 3306 and is mapped to 3306
will remain and which
The environment will use it like we did.
Last time I did MySQL you want
So you can put the environment like this, my AQL
Route
password and let's put you root and
Let's move to a MySQL database and you
put test a dib ye aap my sequel
put the root password and database of you
You can also add volumes if you want.
Volumes
What put the volumes
to mysql
data colon sl ver sl lib sl my sql ye
We last saw Docker in it.
How do you give volumes in volumes?
Now you can move on to the most important part and
If you want to enter the network then
networks networks you can put this
Please put some name in it Notes P so Notes P name
You should create a network in which this thing
You will put it, okay, now whatever volume and
Input the network you created below.
Two so what is my sequel in volumes
Data This is your volume and what you
Networks
which one is this
what is it
Thay Notes Pa Toh Yeh Apke Network Ho Gaye Toy
There are two things that you have done.
So your work on My Sequel is also finished.
Docker's Cha is done, now your work is done
Sorry Django's I always know Django's Docker
No, why should I tell you, then let's go now
The work of Django Again will be the image that
Even if it is built, where will it be built from?
Where is the context from the context placed?
Dot slush where it
Where have we reached
My Notes or something called Notes Pap
Notes Pup is not in the name but also in Notes Pup
It is not here, it is kept outside only.
If you do a dot, what will happen to the current?
The Docker file is kept at the same place.
He will take it from there
container name now container name here very
It is important to know why because we
People have said in the engine that the
Confine Hai Usman Jo Jango Underscore Kant
This war is under the container, so if you want to pick it up from there
Your container name should be JangoCont or
Then whatever the container name should be, it should be like this
Should be updated in confession then here
Pay Jaake Jango Kant Your Container Name Ho Gaya
It's done, what else do you need, environment file?
So the environment file is new.
under file what does this one say that from
You can now import the environment
See what the name of the file is.
If you take then Jungo notes in P which
If the environment file is dot invi then you
dot here
You can name this file as invi, it's done now.
This container also
Restart Always Up Always Up
Similarly yours is
Whatever my sequel will be, that too
restart will always be there okay all these
All three containers should always be restarted
If by mistake someone has failed well then
Now the structure of our three containers has been created.
That's it, okay, yes, this container too.
If it remains in our network, it will also get a
If the network provides
NetWords is a notes app, so is this one.
If it has come into the network then your NX
Your container has been created for My Sequel.
The container has been created and so has your Jungo.
container bun b some things in the container of the jungle
Missing is like ports not written we
People put ports and
Ports seen due to environment file
How much easier your work has become by hosting us
And the database name and password are not all of these.
I had to put it, I would have taken it from the environment file
So whatever our port is,
8000 is mapped to colon 8000 now if you
If you remember, we fought these wars
We were creating containers through the Docker file there.
But this Expose did not write anything after 8000
There was no run command so you could do whatever
You want to give commands to that container.
Also write this in your Docker Compose file
If you can, what you have to do is write simply
Is
The command is fine, simply write the command and the
You can write any command you want with let's
You want to give a command in a shell script
Yes, first of all you want to give a command that
Yes
Unicorn Bhaiya Ji what is a Unicorn
G Unicorn is a tool that helps you
Serves applications in production
So Jia Kan is a W SGI
There is a file like your Notes app.
Inside it is a device called WSGI.
The file that serves your application
does
So what do you have to write here?
Can not be added as to what WSGI says?
It happens and starts serving and Hyn
Heine
It is Bindi and starts running locally on this port.
If so, just look at the full picture, the big picture.
Look what is going to happen, you kissed the jungle.
drove on
0.0.0 8000 so whatever runs, it will run locally
Inside the host container you have now installed ajax
It is said that
If the user enters a slash in the URL,
If it redirects to this application then
If you just put a slash in the URL
If yes, you need to enter the port number.
There will be no need to write it all down.
Your application will have to be running internally
This is the power of Inex, just for demo
I'll show you through okay that's done now one
The other thing remains your Jo Jungo application.
This happens whenever it connects to the database.
If it happens then that migration has to be done
Some of its commands are python manage pwa
migrate ok python.py migrate this one
There is a command which can be used to access any tables
There are tables and columns which are databases
All those who are going to become I become
hein hein no input what does this do
It is that you are saying that after migrating
After some yes no, no input is given.
If this command is run directly then it
The command to run my Django pup is
Now my Jango app is also ready.
The container for the war has also been made and I
I think everything is ready, let's go and see.
Okay, everything is done after running this.
Let's see
Now what I will do first is simple
I will docker compose up now than doing up
I will understand that it will appear before me
what is going on and what is not going on
It could also be that my Python
Container of Sorry Jango Container of My Sequel
It pays but I put it in here
If it is not there then it is good that I reminded you, let's go quickly.
Let's put VIM Docker Compose now mine
It depends on the container of the war
If it is on my sequel then I will write it here.
depends on what depends on my
sequel pay ok so my container of django
Depends on My Sequel
And what is mine
It is the container of the engine and the engine also has a mother.
If you want a sequel to your wars then Ajax
Depends on what my not my own jango engine
Depends on the war and your war may
Depends on the sequel, it's simple Ajax
It depends on the wars and this is over now.
I do docker compose up
Done Let's See First That My Sequel
I will pull it, okay I have pulled my sequel.
Great bridge
Complete OK Let's see what happens
Next looks quite interesting because
In a single command you can do the entire
Are you applying up?
Please give me the full application up here.
Deps is fun
Come on, he's building Django right now, oh ho.
Yes, nice, nice, nice, nice, right now if you
If you pay attention, what happens
Tell me, okay, something is happening, so basically
Your My Sequel Is Ready Your Angel Nicks
saying host not found o jango app jango
App not found ok and what not
He got that
No, never mind, the Docker entry point is here.
Can you see unknown server host db then
The host name is the DB, is it like this?
The name is DB, there is something like that, oh my god, it is quite enough.
There have been a lot of errors. There have been a lot of errors.
Let us solve all these errors one by one.
We will resolve it by doing it, okay let's do it one by one.
We will correct all the errors
Resolve OK First enter a health check
Let's give you that container of my My Sequel
Put this first condition that it should run properly
Let me tell you that my sequel should work.
Because it is a database, it should run
Let's go let's go
Now such interesting scenarios come up that
You write everything and then something else happens.
If not, then first of all look at v m ad evi
Go to the environment and see what
If yes then the database name is test db is it correct
Username is correct DB password is root
DB Port Yes DB Host Yes
What do you need to put in the host that my
The name of the sequel's container is that pouring
If you have to, the name of the container of my sequel will be
I have already put my sequel so this is one
This was the first mistake that we rectified.
If you have done it, then the container of my sequel
name is my s no my note no docker
Which is the name of my sequelize container in compose
He has to put his own container name
I have not even put it, no problem, so let's go my
Enter the name of the sequel's container.
container underscore name what have I entered my
AL so this is the name of the container now I want
I am not ready until my sequel is ready
If the container does not move by then, I
What will I do, health check, I will put it
And I'll put one to the test
As such
command which
Do MySQL Admin
Pin it
For all this comma separated pin
Kare for my
host lo local host
P means that my sequel will run in this container.
It's going to ping the same local
Host with the username root and its password
also the main root should be this this this
Test condition should run
Interval: It runs every 10 seconds.
Needed
writ it five times
Retrying had written somewhere that if you
You might remember that in the last two-tier flash gap, we
People wrote this thing that 10 seconds
Need a time out within an interval of 5
Retrace five seconds and start
Period 60 seconds, so copy these three.
So here we are, man
Okay, time out five
Restarted and I deleted the interval.
Diya ok
[music]
Interval 10 seconds then 10 seconds
Five 5-second time-outs in intervals
The bar will retire and the start period will be 30 days.
If it keeps doing this for a second, then this is a
Health check is done, let's do another health check.
Try running the My Sequel container first.
If that is the case then we will proceed further.
will do it so it's done escape colon d k
Enter this is done now yes the second one which was
There was also an engine issue, so VIM
which in Ajax
There was a default conf, there was some issue in it
Yes, look, he's holding Jungo Pup.
Tha is not a Jungo Pup, it is a Jungo Container
okay it was catching it done let's do it
The work is done, now return it.
Look at Docker
Compose up now, ideally everything should work.
Because we also did My Sequel
Fixed Docker too, sorry Django.
has also been fixed and the engine also
Mistakes have been fixed, please provide Docker support.
Enter
Come on, let's see us
C
OK Host not found in upstream O
Basically host not found in upstream
This means that Jangpo is not yet ready.
But why is this Jungo app searching for me?
Let me tell you why you are looking for this Jango
Have you ever been to your Docker sorry yes
Do you change Docker's confession?
You change the file, you change anything.
So by default Docker Compose doesn't load its cache
If he picks up things from you then you have to
I have to specifically tell you that brother build
also do build also then you will get a command
I have to write docker compose up hine hine
build but how do you write docker compose
up hine hine build but now I have this thing
Notice that when I do this, every moment of my life
Things will start building back up, let me do it.
hmm okay can you see it starts building back up
I went back and everything started working, okay, great.
running nice nice okay can you see docker
Entry point confession complete now he says
Host Not Found Okay Confession
Completely ready for start now until my
My sequel is not set up properly then
Till then the engine will keep getting this error that brother
Host Not Found Jango Container Not Found
As soon as my My Sequel setup is done then
Now it will go to the Jungo container and say
what container
Acetate Unknown Server Host
Let's see, let's see, let's
Continue seeing that my my sequel when
Things will work only if you are prepared properly.
Let's see if my sequel is ready or not.
First of all, if you are a beginner then this much
Don't be afraid after seeing all the errors and think what is this brother?
what is all this happening unless your
It won't work until things get sorted out.
Okay, okay, that's back to retrying.
Unknown Server
host don't talk let him do it
tra ok mujhko bas main kya hai mera mai
The time when the sequel container should run, my
The sequelize container will run the Jango container on its own
You will connect that thing and proceed further.
things are going smoothly
Or we can do something else.
are our jango containers restarted until then
This continues until a particular test case
If it doesn't pass, let's do that.
So let me write a simple test case.
I
Why is this Unknown Server Host coming up?
My sequel, this shouldn't have come.
Let's see why this is my sequel.
hitting an error
I do it, I do it, fix it, stop it
Go stop, so in such a situation videos generally
where the errors are coming
I have it because of the same errors you people
also learn c so vim docker compose now i
What I want is the health check I did in my
I did the same health check for the sequel.
Make your own containers for your wares
I will do it for you and tell the wars that
Brother, as long as it's yours
CMD Shell In CMD Shell Yeh My Sequel
I will not ping the admin.
I will make curl that localhost a
until your up and running
Till then brother keep trying, give it a curl
Give the command and tell me what happens in curl
curl means like we are sorry on browser
Go and write this IP address 34d like this
You should have written something like this, this curl, this curl
also happens curl hein f now here you
Please provide your URL http
colon localhost colon 8 000 beyond which your
The application is running as sl admin.
If the URL is
If it comes out well then it is correct.
Otherwise, exit, exit one, do this much.
So this became my health check condition that
As long as this test case or this health test
return the container until it passes
keep going okay it's done and that's it until
This won't work until your
A, which one is above, Ang Nix depends
If he does, then Ange Knicks won't even be there. Come on.
Let's get started by naming it something else
Let's keep it, let's also give it a D name.
And just because I feel like this
I am confused with the host name, let's see
Let's escape colon double k enter that's it.
Docker compose up hine ain build so I hope
You can see this build command in my photo.
It must be coming here, I will remove it.
The build is visible
Enter what is saying service janggo
Depends on Anfa
So I changed the name of this DB.
Did this change me in Depends On too?
If you want to do it then it depends on the database, this is done.
Done, now I will do docker compose up halfway through
Build and back up the photo OK what do you say
Raha Hai Woh The Container Name My Sequel E
already in use or to docker compose down to
Your container was already running, now what should I do?
I'll back it up Docker PS
I will check if the container is running.
Docker compose up not running hine ain build
Enter Let's Go Kya Bol Raha Hai Name E
already in use why are you saying this
If you are facing this then docker ps
Try a container and see if you can see it.
This is my sequel if I exit
docker rm remove the first container
Okay now look at your My Sequel container.
Why are you dying, why are you not moving?
Is the reason that your My Sequel container is
Not running and I'm looking at Docker Compose
Is there any problem with my sequel?
Went
hai image my sequel okay container name ma
Sequels are okay Ports are okay Environment
ma sequel root password database ok all
Something feels right to me, volumes my
Sequel
Data Volumes Yes Whenever you
If you make it, then definitely put a dot here, dot
My sequel Data to isi jhaj par banaye waise
Well, there is no need for a dot, just look at it once.
I take it that the old volume we made
how was that made yes can you see dot
Sequel data is inserted in SL, maybe that
Issues are coming, okay, it's done, networks
I have put Notes on and I have put Restart on it.
Yes, I put everything in and it's working fine now.
Needed
docker compose up hine of build enter let
Tried to run my sequel
ok something is going on
This had my sequel getting exited first
I was having a lot of trouble with this right now.
The sequel is going well
Is
Okay, let's play our My Sequel one more time.
Lag Jaye Yes My Sequel Ready For Connection
Now he'll run his Django container
Why is the engine container failing?
The one did not run
Okay, let's see how you can see the unknown.
Server host my
SQL Server named this my sequel
Why can't he find the host?
There is something wrong, why is this happening?
Hai Host Not Found Jango
Container Ye Jango Container Jo
It is unable to connect to the database
Why is this happening for some reason?
Hai let's see still wargo container acetate
Coming with code
Is
Okay, let's try it out. Walk like that.
I should have, but okay, I think for some reason, one
Let's take a look at our
There is a main compose file, what have we done in it
Did I make some mistake while building the engine?
I have done everything, I have built the context
Did
This is also bindi tha environment file also please give
I had given all this also I have given the image container
NameDB Underscore Container ODB
Is there something like an underscore container?
DB underscore container in environment
It is written what could be that the DB
Its something to do with the underscore container and DB
Relationship
Yes, let's see
DB Underscore should not be like that
container okay let's give it a try
Let's give it a try, by the way our
This entire Docker Compose file is the same
Whatever we made is the same but
Let's just give it a try, this could also happen
that it's some kind of particular thing
Let's try that and see if it works.
It's well and good, if it doesn't work then he will
D bug will do ok
Come on sir, we should not go to an unknown server
Host my sequel whenever you have such an unknown
Server host see what your notes are up to
Actually, this work is done by the developer if some
It may or may not work but you can change your settings in your power bank.
You can go and see what he's doing when
Trying to connect to the database
This is the host and the DB
Underscore Host
in db underscore host whatever
Your V.I.
Whatever will happen in M.invi, it will be this
It has my sequel right walk
Let's see here I did DB
I have done the root test db everything looks correct
It doesn't seem like anything is wrong
Here let's just see what we have here
container is kept
name container what is put here
[music]
The container name is Django
Container DB
Let's try a container. Let's give it a try.
What difference will it make to the container name?
Brother, I have put it in double quotes, by the way double
There is not much problem with single coat but
Let's give it a try ok let's use the DB container
What is the name of the container of its engine?
inserted in the Ang Nix container let Ang
Nix container inserted
And what is my other one, of the wars?
container name jango container ok
Jungo container inserted
Again, let's give it a try, it may be something
There may be an issue with the container name in Docker Compose
Now remove as many containers as you can from the bottom.
All the containers from Docker Compose Up
turn it up okay
up okay let's
C Let's Give It a Try
OK Confession
complete
OK, but the engine container should not be created.
Until
Our Docker's sorry not Jungo's container
Until it is formed, the engine should not be formed but
Let's
C Let's Give It a Try to See What's Happening
Its
with ok
Unknown Server Host
Is the DB messing it up?
He's messing me up, I don't understand him
If there is a network then everything is fine.
That's right, networks in all networks I
Think all put right in
Is
We are interesting, some are very interesting.
Interesting work is going on, let's see
Network Jungo Notes
P o o o ok ok I understand
If I do Docker
network
create docker network create high which
Notes
Pap hine de bridge if I a network
I specifically create the bridge
There is a type of network called Notes P
So this network has been created, now I
The Docker Compose file contains a network
given that now let's see what
I have created a network and I
which is giving network in docker compose file
If he can connect with her
Docker Compose Up Lets
See Let Us
C well, another thing about this was this
ApnaDB which was the name of the environment file
DB is the host in the environment file
And if you put something of your own in front of DB then e
The DB in the embed env was the underscore container
Okay, that was one thing that I suddenly remembered.
went to docker compose up hine hine build
Let's see what he's saying
O my sequel data permission denied so here
But someone named My Sequel Data was made
Does the OM remove it or
You can also give it permission to
This is my sequel data, just delete it now.
sudo rm hine rmy for
sequel data why is this happening this is such a
A folder has been created that shouldn't have been created.
Ideally, he has become E.M. Docker.
Go to compose, this is my sequel data and
There are networks, right, remove it from here, okay?
We would like that whatever volume is there, we
Create externally Docker volume if ok
Create my sql data to my sql data
I create a volume named
My sequel Sorry Your Notes is named
I have created the network, now I will
go and see
am docker compose up hine hine
Build now according to me this thing should work
I want to know why, what is that engineer saying?
Undefined Network Notes P Invoke Compose
project
I had created the network network, right? Docker
Network LSA Notes
PVC Docker
Compose
o did you understand what I said
I messed up what belongs to the wars
was not even connected to the network
small mistakes im pretty shy
People must have written in the comments
In the network we have containers of Notes P wargo
was not even put into the network, small
Issues keep coming up, so your wars
Container is my sequel of this whole one
I should have him in the network.
It was not even put in the network, it messed up
So
what is the name of the network notes
P like here
Tha note p
Done Let's go Docker compose up hine ain build
Let's See
Oh fingers crossed let's see how it is
Goes Let See How It Goes
Okay, there's still something going on.
Let's see OK your DB container is now
Ready for Connection and Jango is Now
Apply and your server is listening at
Port 8000 Drop a boom in the chat if you
I understood that real life problems are a
You know how many problems can arise
What was our problem in the wars, everything was fine
It was running from there, network was not provided.
It was a small problem but so many things.
If you learn this project then you will enjoy it.
It will take a lot to run this, let's run it now.
So basically if I do colon 80
then my application should run
Enter and my notes p is running boom in the
Chat because this is your notes page which you can see on this.
Plus will you put this is
Amazing and you
put this is how
You
Trouble Shoot In
Docker dicker was done docker save this
Saved it, the notes arrived, on which date
Made it, that too has come, it is so cool, isn't it?
All your logbooks should also be collected and this
through the entire engine
I have not entered my deployed number.
The port number is not listed anywhere.
And is this application running, brother?
I enjoyed exposing my port, didn't I?
Had to pay Rs 8000, didn't have to do anything, all this was done properly.
It's going so well if you enjoyed it
So tell me quickly in chat, I will tell you
Let me tell you once again what the issue is.
There was no issue, it was simple.
I created a network of notes.
That notes app network called Django
I passed the container in the argument
I didn't do it, that's why it can't connect.
I was finding this to be the biggest issue.
The rest of it is up to him to find that small network.
I did everything for you, enough of your time
If you have taken it then that is a different matter, so if you have this
Interesting project, please do
Tell me quickly in chat where I am
also no one is going to edit because this
You may also get all the errors like I did.
If we talk about this simple thing then it is that these big people
Such small things keep happening on the channels.
I am joking, it is not a big channel.
If you wish, then you will surely
You can like the video and subscribe to the channel
Please subscribe so that we can
Let's grow in a bigger community
If I docker compose down then as many
All the containers that were created will be removed and
Docker compose up hine d karunga so that
It will start running in the background, okay cool
I can operate the entire computer now.
If your app is running in the background and
If you look at this amazing container
Despite removing it, this data came back.
It simply means that your data can also be parsed.
It's been so good, let's go
What to do if you like the video now, brother?
Like, share and
Subscribe These are the three things you need to do
you okay awesome let's do this one now
I understand that brother, this is also a note.
Almost quite next level engine my
This project was a sequel, it was a flop cap.
Simple Java Tutor P Bhaiya and Project
I want it now, meaning my heart is not satisfied.
Mange More We need more projects and you
Let's give some and see the project but I
Hope you will understand this much
How to run Docker Docker is clear.
It will all come with practice, okay?
Everything will come with practice, so we did this
I also did a project with
Let's see this three tier application with
Docker Compose is what we will do in Java.
Let's try the application, okay let's go.
Let me try the application and see it now.
J Shubham Launde 153 in repository very
All applications are expense trackers.
There are so many applications on Notes.
Lots of these expense trackers
Let's see, I have affection, this is our batch
I have done this for the learners till now.
I haven't tried it but I can see it.
By running If This Works or Not, let's run Docker
Let's see the file of this application.
so this is a project of Mavin okay okay
And it is made of multi stage
That's great, let's give it a go
Let us first see about this project.
Let me tell you a little bit, okay, so this
I will tell you how three ter A is.
Let me tell you where the place is.
Yes, here it is, so now understand that three tier
What is the meaning of application?
The front end is okay, which is called Thyme Leaf.
There is a Thyme framework in Java.
Leaf Thyme has a front end called Leaf
Your UI is built so you
How will you show the UI?
If your browser is fine then
The UI is made on a thyme leaf that will shine on your back.
And it is built on Spring Boot.
Spring Boot is a Java framework
Yes, it's okay, go, go, die, disappear
Java lat java that one java no java bahut
It is the most popular programming language
The framework is Spring Boot, so your
Spring Boot is your back end and which
The database is
Again sorry take database on mysql
Let's take it, okay, so there's a database on my site.
Your OK, so here it is.
Your MySQL DB is this three.
Tier application is yours now this spring
Boot is the back end, it is built into a
from the particular tool whose name is
Mavin ok mavin now what is mavin
Mavin is a build tool that works well
If it is made by the organization then it is good
Maven is a build tool that allows you to
I will build a great application and it's done.
This is what you have to do in today's project.
So the first thing you should do is to install Docker
We need a composition in which we can use these three applications.
People will be building these three containers we
People must be making what is the best part now
This is about thyme leaf and spring boot
Spring Boot and Thyme Leaf is this you a
You can combine it in the application just
Like our previous application
Build the front end and back end into one
I gave it to you in a thyme leaf spring boot
Only you can combine that through Mevin
Once built, our base image will
The base will remain
Whatever image remains, it will remain Mavin's again.
In the base image of Mavin, we have Java
Build the Spring Boot app and
Externally take a My Sequel database
and try to connect it
This is our simple project, let's do it.
Let's move on to the project.
Let me tell you a little about this
What do you say about this entire project?
About the mvn wrapper, it remains internal.
You don't need to do anything for Maven.
This is any application that is running on Java.
Application and Java Application Run Time
There is a maven jar installed by default.
It comes with Maven for download and this
Maven has some properties which are by default
You don't need to write anything down
SRC is no longer useful to you developer
It is useful because on development
Basically he writes code, so here's some
test cases these are some test cases and
What's in your main resources
In resources you can see it in static
asset css these are all these things okay
Assets means whatever landing pages you have and
It has new icons, all those things
To beautify your CSS
To make the page beautiful, he
Your front end is all in JavaScript.
This is working fine, see the properties of the application.
important part because it
properties, understand that this
These properties are stored in environment variables.
You will have to pass it only then things will work out, so see.
What is the name of the application Expenses App?
Okay, these are the expenses of your application.
The name is the URL passed to Spring.
The meaning of data source is database
Connectivity JDB (Java Database)
Connectivity is the thing he uses and my
Now pay attention to what connects the sequel
Read from this URL and I got this much
I understand that your My Sequel
The container name should be mySequel
The port of the container should be
3306 Database name must be EXPENSE
Name of the tracker and your application
Expenses must be the username
The root password should be test123.
Confession that your Spring Boot pup has
It means the configuration of Spring Boot P
Confine here
is that something variable and its
Correspondingly
Meaning this username is in my sequel
Also the username will go and the password is this my
The password of the sequel will also go to My Sequel
The name of the container will be this, the port will be this.
The name of the database will be this, I understood it.
It's simple, you just do it and it's done.
Your application's properties are now
View the source code of the application.
You can see it directly here.
I won't go into the source code.
I'm not a Java developer, aren't you?
If you are there then you can definitely see it but this much
If you are happy with me then this is your Java.
This is the application, now let's see the MV ad.
Yes again this file is also some of Maven
commands that are by default
In Maven project you need to write
No, what is important to you is
pom.xml
It tells you that your application
Which second does it use dependencies from?
like my application dependency use
Spring Framework Boot and
Spring Framework Yeh Yeh Thyme Leaf Yeh
Creating a UI in the Spring Framework itself
There is a thyme leaf for then for validation
There's something this that my my sequel connector use
And so on so all such mayvin
The Spring Boot plugin uses this, so this
All the pom.xml you need is finished, that's it for now.
Let's take a look at the Docker file and understand it.
How do we write this Docker file?
First this is a multi stage docker file so
First we have to pick up the image of Maven, name it
Have to give builder then mvn clean install
Install your app through Maven from
Then what do we have to do in seconds?
We have to create a stage where only this
which is copied from the builder
You have to take it and copy the jar and just run it
That's it, let's create the Docker file.
Sit down and take references in between
There is nothing to fear if you take this source
Git clones the code
Clone It's Done Okay Done Now CD
Expenses Tracker Well one more thing whenever
You are picking up any such application from
The Internet to its original author
Please give me credit, I did this for you.
There is so much love for the learners of our batch.
Yes, but he has done four, Mohammad O
Savvy to Mohammad O Savvy Expense
Tracker Web App Now Mohammed Nine Months
I made this app first so big shout out for
Him, you made such a great app, it's yours
The app is going to stay. Big shout out to him.
Let's build you got enough shout outs come on
What will we do now? First of all, this Docker
file
And we can remove the Docker Compose file.
We give because we are from scratch
About to build ok remove docker
file remove docker compose file both
I have removed it, I will make it from scratch brother
I Am Docker
file docker file now java application
Creating the Docker file for the Spring Boot application
How will we make the base first?
Image will pick which maven's mavin's
We will pick the base image because we need a
An environment is needed which is also open to the environment.
JDK should also be Open JDK, it is fine but
Which exact version do we want?
We will see which version it is brother.
You should be told to look at these expenses
There is a tracker app, there is a docker file inside it.
No, but Sneha who is our learner
If they created that Docker file then Maven's
We need a particular version, that's what we need.
3.8.3 ok 3.8.3 and Open JDK's which
version want that want 17 this is our first
This is the stage, with the help of this stage we
This is the first stage
The one where we built the Jar Jar, meaning
Java
Application Run Time
So basically the jar file is an executable file.
I will become using maven is done now I work
DirectoryEntry
main remains maven mavin install and when you
Do
Ho build jar when you do so how can I
Create a runnable jar using maven so this pam
Excel you have to write mv n clean
I saw this like this with such a start.
I learned by watching, okay but maven installed
Before doing this you need the code.
Copy everything from your
host machine to your where here from the host machine
Now copy it to all the containers and run Maven
clean install now if you noticed
So this is our code, this expense
The tracker code contained some tests.
There are cases too, if you look at the test, test
We also have cases that are lying vacant.
If the developer hasn't written it, what can we do?
will skip test cases
What will you do by skipping test cases?
We will give it, that's why we write it down.
Skip Test Equ True Hyin D Skip
Test Equal To
True What does this do to your taste?
Basically, this much work gets skipped.
This particular work remains
then mv a clean install from maven
Your application will be installed and finished.
What this will do is get the jar file
It will go okay, I got the jar file, now when the jar
We will get that jar file.
If we copy then we will reach stage two where we
Only
will execute the jar file from the
Abab
The stage where the jar file will be created here
This is run maven, create jar file or jar
The file will be created and here we will have a small
Now we will take the image and run that thing.
I don't need to run the file as a maven.
We should simply open the JD's 17
Alpine, this small image can also be useful to us.
Maybe this is a small image of Open JD
17 Alpine Alpine Always Not Small Image
If it remains, this will also get our work done, let it be
It will become a disaster, what will we do now?
We will copy high fun from the equal to
Now there is a naming of the upper stage.
If you do it, name this stage.
Dia S
Builder Okay, we're building from here.
If yes, then we will copy from builder
Is the target inside its slash p
This is the target, this is the target
The target is your body inside this target.
When the file is created, I copy it from there.
I will take all the dot jars, whatever my jar file is.
I will copy it and put it on the current
In the file, there is also a working
Create a directory Work DIR
I paste it in the current directory.
I'll do it here, what slush
I will name the app something, yes.
Its name should be the same as the application
I show you what I was doing in properties.
Edge so I show that its name
Why did Expanse Edge fall? Because your
SRC is for him who is the main one
Resources are application properties
In that its name is Expenses app, so which
The name will remain the same as the file name you want.
I have to put it, it's done, our net is copied
File and
This is exec or not exec
ok that's done now I'll do cmd
what's going on brother
Two
Java
And sorry expenses
add jar I will commit my jar file
execute ok whatever my user file
I will execute him if only
To execute the file, you
Something like this has to be done, write Han j
Does matter
So what did you do?
I wrote Han Jar here, okay done.
So what did I do, Pap Target said this.
In the upper stage, the one named Target
A folder is created inside which all the jars are stored.
I copied it into my app.
app.js
escape colon double k this will cause my application
My application will be built.
The build will be done, my Docker file is created
If you want, you can build it and see.
Try building it with docker build
Nutty Expenses
A dot what does this mean I am keeping it here
I want to build the Docker file. Press Enter.
Try it out and see if you can find out
Is there any issue with the docker file anyway?
It would have been known in Docker Compose but already
Check the issue of the old project.
No one will make such a mistake anywhere.
We will be very careful not to make the mistake
Will run every single thing Let's see Mavin
The installation started and everything was downloaded.
Full automation and full power have started happening.
talk
Is
ok well done
Everything installed perfectly.
Build Success What Matters So Your
Your application has been built.
The application is built, now this build
The work that was done is over, now he just has to run.
can you see running in this your
The application is running, well done
Just look at the Docker images you have
Expenses was just an image of P
379 Now imagine such a big project
Spring Boot is only 400 lbs.
There are also no multi-stage builds if you
If I understand multi-stage build, then I
Quickly tell me in the chat that brother, multi stage
Builds
Done let's do what now now yes Docker
I will create compose d y aa ok now it's done
Understand what I need here.
What do I need first
Version 3.8 Let's write this down in advance
Write that friend, this is done now services
What services do I need?
What do I need? Yes, first of all
I need
a java
P and then I need a ma al db this
I need two things, one of Java
Need application and database of My Sequel
If you want, then the Java build will be
Where is that context kept?
directory and this is what Java
This is what the container name should be.
There should be expenses
Expenses to be the container name
should be ok
Don't forget the network now.
Don't forget the networks, brother.
Expense A Adb, add some such name
Expenses Pay Adb, enter this name, okay
Now the environment
This is the most important part here.
is most needed
Your environment
But the environment of Java
Variable is already application
property then whatever is set in your Java
Its environment variables will remain here
It is already set, if you overwrite it
If you want to do it, you will have to understand a lot.
You will have to understand this simple thing.
I will explain it in very simple language
Look, this SS is your Java app.
Go to its main folder, its resources
Go to its application properties
Now go and see the variables that you see in front of you.
These URLs are the Spring Data source URLs.
Spring Data Source Username This username
Which is written in front, Spring Data Source
Yall isko as it is copy
Do it, take it here and paste it, but when you paste it
You will do it, everything should be in upper case.
Meaning it has to be the name of the environment
Needed
Spring Data Source Han URL because when
If you write this then only it will map to this thing.
It happens that this is a property of a Maven.
Whenever you build through
He has to write it, now copy this URL
Here JDBC, copy this URL and
This goes and throws
Two this slammed URL now simple spring
Data Source Username Now Spring Here
Data
Source Username What is the username brother here
If you have a route, then put the route here too.
Spring Data Source what's next password
So
password password what is test @ 123 i
Hope
Test @ 13 yes it's done this way
You have set the environment variable of your java A
If you have confirmed this, you will not have to remember this.
All you have to understand is that whatever
Variables in Application Properties
The same is written in upper case with a dot.
I understand that I have to put an underscore in its place and run it.
It has come, it is easy, it will be done now, it is done now
This is my application
Depends
On
My My sequel depends on My
Sql
Depends on the DB
hai ok let's tell my sequel db
Let's restart it too
Always restart it as well
Yes, on which port does this application run?
This application is not internally an accurate tom cut
It runs on the server which has port number 18.
If it is 8080 then you should also check it out once.
You will have to know on which port this application is running.
If it runs then generally good tom cut 8080 port
It continues but still you can check that it
Where does it run? Yes, it runs on 8080.
Correct, let's say brother knows it, okay I have done it a lot.
I learned Java earlier but I am a full time
I am a Python Developer Platform Engineer.
Where I had work on Jungo Python
I understand Python things quickly.
I read long ago which ports
Is
80 80 colon 80 80 done running on 8080
is ours
The application is done, now it has a health
Also check that Bhaiya 8080 P application
If you want to go, have you put the health check here?
No, it is not posted here, no problem.
We'll put what's in it, so it's done.
Now your Java app has been created.
Let's go to the Sequel app, so my Sequel
The image that will be used will be the image of My Sequel
He will use what he
The container name it will use is the same container name
The container name should be what is written here.
If it has happened then that is why my sequel should be here.
The container name and the networks needed here
The same network is being used here as well.
It should not be a last minute mistake
We will do it, okay, this one is done, now this one too.
Environment
Will there be a variable environment in this?
The environment will remain my
SQL Root
what is my password
Root now MySQL database
Now the database is what you have to put not root
Password is not root then test@123
root password will be adopted test@1223 ok
What will now remain is my Sequel database
Our database will remain the same as the one we have uploaded here.
Expenses and Tracker Okay, got it?
Raha Hai Na Sorry So My Sequel Database
Expenses under tracker so both of these
The variable will do its job.
Enter your work in password and database name
It will be done now I need a restart
Always have to restart it again
And what else is needed in it
Ports, ports, we need it in
3306 colon 3306 this is our ports should
Ports are also done brother, now we need a health check.
We will get the health check test done.
What commands are inside square brackets?
will put
Which is what my sequel admin
will ping
will on the
host local will ping localhost
host why I'm doing this because
I know my sequel takes time.
It is being made so long as it is thoroughly tested.
Until that happens, I will keep the container above
I will not run any Java container that the user
Its name is
Route
and the password is its test @ 123 nice one
Another thing happens by filing secret files that you
You can also get the password from the secret file.
It became one
Now I will put it in
Interval of 10 seconds and then
And what do I put in Start?
The period is at least 60 seconds, so brother, you take it.
It takes a second to start up and just time out.
You could have also put a time out, a small time out.
If nothing happens for 5 seconds,
So time out done restart always it's done
If you create a network
what is the network
What is the name of the network Expenses Pay
Network Expenses would have created a network
And the volume that will remain, those volumes
We can use the same volume as
The previous one was used dot sl mysql
You can use a volume named data.
Ver Sl
Lib
Slush My
Sql I think now ours is completely made
It is done, yes one thing is left that our
Java is not working unless
If our My Sequel DB doesn't become
Put Depends On here.
what my
SQL Underscore
DB Enjoying reading Docker Compose
that the container commands you used to write were written by Docker
Build, Docker, Run, all in one place.
If you are driving cool then version
3.8 This is your version of Docker Compose
The file version is services two containers become
There are Java apps in which
Build sorry context dot means current
The Docker file is stored in the folder
Build the container name Expenses P
My container's name will be Java.
Network Expenses P Adb Network Me
I create something in the environment
environment variable passed in
Entering JDBC data source URL too
This is necessary because it allows us to interact with the database.
Connectivity will be Spring Data Source User
My username is root, the database user
The name is root and the password is testA3 until
Until I get my My Sequel DB
My Java app won't restart.
Always a health check here if you want
can put
Yes, put a health check here as well.
There should be no need to put it in there but
If there is no one, what can you do?
You can tell the CMD shell that brother, my
sequel admin no you curl you curl
Do you want to curl a simple curl?
on port number 8080 on your local host
Your application is running or not running
curl hine f http colon
Your application is running on localhost 8080
Is it running or not? If it is not running, it will be
Then exit with status code one.
Finished and that's it, done, restart
Always put now looking at ma sequel DB
takes the image will use my sequel's
Container name will remain my sequel this network
It will have the same network environment.
I've put the variable restartalways
He will keep showing his stomach and in health check
Health check is also fine, volume is also good.
I gave the network, I gave everything
is all set escape colon double k enter this time
No Mistakes Let's See Docker
What happens with compose up, press enter and finish
Depends on already defined at line
14 Probably Turned Depends On Twice
Depends on
It already depends on what I have already done.
I think I told you something twice.
ok be it
Gone is the escape colon double k enter now.
You can run Docker Compose and see what happens.
I am validating home no to ec docker
Compose networks must be a mapping to we
I'm Docker Compose so networks that mapping
It should be there, have you put it or not?
So, the mapping of the networks is
Mappings should never contain dashes
If it comes, you will have to remove the dash from here.
And this mapping is mapped with colon
If it happens then press escape colon.
enter docker compose up enter
Let's end with that being said your build
The stage has started. You have your Java app.
Build Let's Run MV N Clean
We have already tried installing it and it works.
Okay, there won't be any surprises yet.
This Will Work
ok ok nice oh what are you
Gaya o is saying binder 3306 port is
already already allocated o docker ps aa
Your Notes app is already running.
He is walking
That's why we can't run it on the same port.
So what do we do to drive this pup?
For my old puppy, which one?
If you take down the notes,
Docker Compose Down so the old P had
The port was already allocated, hence the problems.
If it was coming then let's take it down and this
Let's start with that, that's when I started the project.
This instance is called Tad Medium at the start
I know that multiple
I'll teach you how to apply if you want.
Let me add a couple more projects.
It's nothing, I just like teaching brother.
I will be teaching all day long
Let's see if the DB container is now stopping.
It takes a little time to start and stop
But fine single click down single click in
How much and what do you want in life brother?
Go back to Expense Tracker
[music]
Docker Compose Down first by downing as many
I have removed the running content now.
I will do Docker
Compose up is not showing on my photo's screen
If it happens then docker compose up this
is inserted into the command
enter lo docker compose
up chalo my sequel inila o can you see
Spring Boot Pu
Nice
Nice
ok it is interesting it is interesting
Let's see it until it restarts
It will continue to do so as long as our database container
And the container of Spring Boot is both health
If the checks don't pass, drive it brother, drive it.
Run it
It is exiting now but as soon as your
start the database
It will connect to the database but
Your database should start that too
Why is the database not starting?
B. Database Taking Some
Time
ok its five retries na five tries
Let's see what happens after
[music]
My Sequel cannot connect
This issue always comes up with you guys too.
Is that my sequel can't connect?
Look, the solution to this is that he
Retrying that was my sequel.
Why is the container not running?
This Expenses app is being run only.
Why not my sequel?
Ambulatory
Let's go
Wet
We do one thing, first we
Let's try the sequel and see it.
Let it go and then we will go to our
Expansions will run Java A okay understand
I came first to the one with my sequel.
Let's go and see, then we will
Let's test the Expenses P one.
Let's See If That Works It Generally
If the connection is not established then this
Which is the health check of the Expenses Pap person.
I will leave that comment out for a while.
Just to see that
Somewhere my sequel when it's set well
go
My sequel is set to be tested.
Let's try and see if the tooth is okay.
What's my Docker
Compose
Up my sequel now play you first my
Play the sequel and then you do something
Karo Expenses P to Exit Ho Raha Hai But
My Sequel Why is the sequel not working?
If you look at the error log, you will see a yellow color.
You will get my sequel oh no
I don't know where my sequel was
Getting treated right
are there any particular region
[music]
stop and look
Let's see what issue Atlee is coming up with.
In this he is saying that
Authentication is very common in Java.
Crazy errors happen brother, you will go to see
So this will continue, but I understand this.
I can't seem to find my My Sequel container.
Why is it not running
That's the main thing
TIM
Let's see what I've done with this
Everything is given correctly
The network is also provided and the volume is also given.
Given
is VIM Docker Compose first just
And just by running the container of My Sequel
Let's see
Depends on my DB all this is correct all is correct
If this happens then it will take a lot of time, so one thing
Do
Only and only for the one with My Sequel
picking up
Hain My Sequel DB this raised such a person
There shouldn't be any problem, I am not noisy.
why it is
Crushing a second then Docker Compose Run
Specific containers see that Docker Compose
What is just for and container only
Docker Compose Client Okay, so let's just
And just us running My Sequel DB
Let's see just to check that our ma sequel
D is also not running properly so docker
Compose
put this photo back up
Are
Now which mother
Let's run SQL Underscore DB
So my sequel is starting the server.
remained
[music]
Has run my sequel d in the path e accessible
Consider choosing ready for connection
My sequel is running, then what is the issue?
By Address Port
[music]
33060 33060 Have we done something wrong?
If people don't do it right
It is my sequel, so ours is going on.
Okay, let me see what the issue is.
Look, the issue came in the old form as well.
If the issue is coming
etc.
[music]
The invitation must be correct
Should I do one thing, there is so much in it
There should be no problem that double quotes
There is no problem but just look at it once
Let's see what the issue is, friend.
In this I want to compare it with this one.
I'm trying to get the data source username.
Data Source URL Source Password Everything
I have kept it almost the same
Allow Public Key Retrieve True What is this
Is bonfire public key retrieve true o this
I have not lit the fire of the public
Retrieve is saying something
This let
If I haven't put this thing in
jdbc my sequel my sequel asus
Expenses Tracker It's inserted but I
I have not put a particular key on that side
in the program
Let's try putting
That JDBC my sequel expands a.
Tracker Allow Public Key Retrieve Equal To
True Use SSL False Okay I think
everything is almost
Similar Database Name Expenses Tracker
Database Name Expenses Tracker Password
It's also the same, I think everything looks good too
I should have worked, ideally I should have
Worked Let's See Docker
compose up half of
what is the build saying
This is my sequel data.
data sudo rm han r
My Sequel Data
remove ok docker compose
Come on up, let's see again, this time we
That URL, give me the correct one again.
is based on the repository let's see how this
Bar If It Should
work run mv en if it won't run this time
What We Can Do Is You Got It
Right, you can also see it by debunking it.
And I can use it directly from there also.
I can try it, let's
C o o o o o He is doing something
doing
is ok no active profile finish route
Second is doing something o and that was the
Issue, you saw everything started moving expenses
p tomcat started on port 8080 boom in
The Chat Why what was the problem that brother was younger
sa it was left allow public key retrieve e
Equal to true is exactly what it is, let's
See Allow Public Key Retrieve True My
what is sequel dockery atli let's see let's
C can only connect to a my sequel running.
In a Docker container one allow public key true
We will know in depth that brother, the issue is
It has been solved but how has it been solved?
Allow public to know this particular
setting that allows you to create a JDBC Java database
have to be put in the query
There is an official one here I did some are
nd and found the following solution that when you
You go here and give the public the truth.
Ho this query help me to connect with the
database
Wow so if you connect your Java A to the database
trying to connect and
If it is not working then might be allowed to the public
Retrieve equal to true you are missing
How cool is it, I also like it very much
I have learnt something, come on let's try it.
To access the application the application is
Running on port number 8080 which might not
B which might not be publicly accessible
So in security
will go
And we will edit these bound rules, OK in
We will edit the bound rules and here
Will add it to the rule
8080
Anyway save rules if you want this thing
You can also run it through AJAX now.
If you run it through Ingenious, it will
Your 8080 is here
Enter and Your Expenses
The tracker application is up and running which
Expanse built into Spring Boot
Tracker is a free to use MT license
Spring Boot
El Sawy Big Shout Out to Mohamed Tariq El
Savi thank you so much for making it free too
Use an MIT license thanks a lot now
Let's try this out Sign in Sign
How will we do this brother G G Hey brother, this
So the next level is P yaar G G diya hua
Sign up and see the username train
With Shubham First Name Shubham Email Train
password test@
123 sign
up username train world password test re
123 Remember Me Log
In O Ho Ho Nice Ad
Expense, oh brother
Groceries Entertainment Yes, we
850
Of
Today
Devs 0 to Hero Course Purchased for
Entertainment Purposes Submit Lo
Error The application judge no explain mapping
For error so you are seeing this fall back error
Hey brother, who was he? He was ours.
Dear Mohammad Tariq Alsaa also brother error aa
If there is an error in your application, please check it.
You don't have to resolve it, it's your job
You have deployed it now the error is
Code errors that will resolve your devops
Developer not engineer so its next job
Let's log out of the developer
Brother I am logged out, I am looking for a log out.
Well brother, it's okay, friend
Expenses Tracker in this repository
The repository is here pull request
You can create that brother done with engine s
Well, whoever creates the pull request
Look, you have to create a pull request.
And if I want to engine it, I will wait for two minutes.
I can do it, I know how to do it.
I'll show you a copy
I will copy the old one retroactively.
Let me show you my last comment.
The directory of my Jango Notes page
I will put the engine folder inside it here
I will copy it, I have an engine.
When the folder arrived, I am in NX.
I'll go inside Ajax
default confine on that I'll go and I
which is the name of my container, I just put that name
Shall I put my name here?
It's called my expenses.
p and this is what runs on the port number
Just put it on 8080 and I'm here on the server.
I will put the upstream server 80 80 its
Well there is no need but if you want you
Can Expenses
App Ye Ho Gaya Escape Colon Double K Enter
That's it anyway it's running on tomcat server
It is still there but if you want to do it then it is there and
Go here and pick up the engine code.
lok kan wala
The code is not the same as the Agen code
Agen I taught you Agen Kisam then okay
No problem, yes I have sent you the notes.
Ang has read it correctly
So here I'm going to go and from Docker Compose
I'll pick up this engine code, finish it and
Depends on Khatam VIM Docker
Compose and just go to an end here
I'll put the engine in, just a little bit of it.
You'll need to look at this to see the indentation.
will need container name engine container restart
And it depends on what it depends on
Your Expense Which Java A Java P Name
Station
what was its name java p ha so java
Unless P is made, it will not be made.
So it depends on Java and its network
That network will also be in the same network.
To Networks Expenses on Network
That's it, now we're running this great engine through it.
escape colon double k enter everything looks correct
Docker Compose
Docker removed all containers
compose up hine hine build because we have to
I also have to build the engine, so what?
Docker o Docker
compose up hein afn build let's just engine ecus
We will build this if permission is denied.
It is my sequel data, that's why
Because your volume is
CreatedDocumentsFragment
[music]
Fifth note of musical scale
data over escape colon double k now that's you
Docker compose up won't kill permission error
You run the command that was there, now what do you want?
He's still speaking to my sequel data.
RM is taking it, let's remove it first.
sudo rm hine r my sequelize data
removed
Watch my videos, I will remove all the errors as
I put it is so that if you get this error
Even if it comes, you should not feel stuck like this brother
You don't understand anything like I do
I am solving it, you should also solve it.
That's why I put all the errors.
The video is long, I think this video is so long.
It must have been five hours
So I've been sitting here for five hours, friend, like bike.
Do some share ver do and if
If you like the video, please share it with your friends
Sharing with and let's see if this p
Works using Engine because I have Engine
I have already told you that brother, such and such
walking like this
should let's see tom cut server
Started not 808 internally and also doing routing
Simply means if I
Go to particular IP http this
Should I go to a particular IP address? It is already there.
Go to port number 80 and press slash
So my expenses are running without any
The port number your Expense Manager is running on
Brother, please tell me its SSL also.
If you have two fun then you would definitely like it.
let's take this IP address and anyone can
take what you say
Hai Gaddi Hota Gaddi Gad Co Code Audi ID
Whoever it is, take it, what can you do now?
Do you know how to go to D and create a profile?
Go buy a domain, okay, right now.
This is for demo
[music]
Only testing, so take a domain like this
Search domain, it is not very expensive.
will come
0.01 means how much is 0.01
into ₹1
Take the rap, friend, what is it, and then go and have a
You have purchased the domain, then use that domain
No DNS mapping like mine is
Which train is the domain of Shubham?
DNS mapping is done, okay now DNS
I'll tell you what I'll do in mapping.
I will tell you here that brother, this is the IP address on this
If you want to map it, I'm here on the domain.
I'll go and click on Manage DNS.
OK in Manage DNS and Manage DNS
I will go and tell him that brother, make a record.
Make a record, add a new record
whose name is put
Two
Docker, put its name Docker and in the option
Choose a record, what is a record?
There is a subdomain like ok.in
Put shubham's and save it here
Updating DNS records will take some time
Wait, then you will enjoy it, you know why.
Because this expense tracker of yours
It was running on IP before, now if you do
HTTP Colon Docker Dataton With
Shubham Co
Enter what happened
This
Why is HTTP not working?
It will take time because it gets updated
I take a little time
Let's try HTTP s a little bit.
It will take some time to update but it should
Have work going on here
What
OK Archnet
Colon
88 should have work yaar no problem STT p
Although this is not ATP S
There will be no way we can track this IP address.
Don't try putting any more
[music]
Yes, I should have left anyway, but never mind.
It's very very easy, as much as I can tell you.
remains the same
Hai Demo Dat Train With
Shubham Co
[music]
Look, it's loading now.
Why didn't this one work? Why didn't this one work?
It's very unfortunate
I have learned a few things, it's quite over.
[music]
Velminik
If so, what should you do if you feel like this
The application is running smoothly on this IP address
But this is happening because this is NX
Who knows if it is on localhost then vm
The default configuration of NUX is local.
I want to run it from the host.
Dakar
Dutton with
I will have to give this to Shubham co
This will confirm your NX.
To consider particular as server name then
This is your domain name, save it.
You have saved it and now back to your application.
If you build, this is your sudo rm han
R Java A data, you have to do it separately.
You should have made it, no problem, you can return it.
You do it with Docker
compose up hine ain build ok iske
Run it in detach mode, okay, hein d means
This will keep playing nicely in the background.
Then we can do our work later.
So let me explain what happened.
What I'm going to do now is whatever our Docker dot
I told the engine that the train was starting.
Tell Ange what I was doing before this.
It was not known that the engine had yet to host the local host.
Knew Server Name Now Server Name
What has been made?
train.com Our container has just been started
Docker ps container all started is engine
Everything is fine now what should I do?
Here I am a great
I will re-add the Sa Docker record.
Okay, I'll add a new record here.
Pay name your Docker will come and the value that will come
That's your IP address again, so copy it.
Do it and go here and throw it and this HTTP
Again you have to remove it and here you have to customize it.
Put a custom TTL of 600 seconds
Time to live so refreshing time for it
It will be done now your server also knows
About Duckertrain.com Your Godaddy Joe
DNS is also known to Docker Train Vi
what can you do now about such a
Incognito now boys looking at incognito
Don't get so excited, I do this because
because old cash sometimes
I never use it for testing.
I get into trouble, what should I do?
Ducker Dutton
with
Shubham I will go to cop enter ok now watch load
It's Loading It Is Taking Some
Why time because it takes time to load initially
It takes time, now he is speaking.
trains.com design supports a secure connection
Meaning, HTTP A is not working.
But still if you are not secure
If you want to continue, then continue with the site.
Do End as soon as you click on Continue with site
One click will get your Expense Tracker running.
has been d.in shubham's
But for now, Docker in one shot is
Completed I hope you liked this video
The video is almost around five hours long.
If you like the video, please like this
Like the video, I put it in
Taught everything from basics to advanced
Meaning if you learn in a single video
If you want Docker, I think this is that.
The video is basically
If you want to learn Docker in a single video
If you are a DevOps Engineer and want to become a DevOps Engineer then this
I have explained everything in the video.
Introduction to Docker Architecture
Volumes Multi Stage Two Project Too
You got it done, what are you waiting for?
Complete the project by watching this video
Do and
Train vs Shubham Channel Thanks For
Wait watching, be patient, the picture is still left.
Yes my friend, there is a bonus in this video.
There is also content where we have Docker Scout
and we're going to talk about Docker It
Let's quickly understand what Docker Scout is.
What happens whenever you build Docker images
Now that you have created a Docker image, let's
This is your Docker image created with Lets.
Two tear flask pop image made so two
Tear Flask was an image of whatever app it was made of
Now this image is created from a base image which is the base
The image can be of Python or anyone.
Maybe right, it is made from the base image
And from this base image your new image is created.
It is also possible that this base image
something in
Security related threats
If there are related issues or vulnerable keys
That's why we keep the image for security.
Scanning takes place and the image is scanned.
This scanning is done with a tool called
Docker Scout brother says this is the work
TV also does it, of course it does.
Trevi's job is to scan images and files.
Similar to system scanning
Docker also has an image scanning tool of its own.
I've created a tool called Docker Scout.
You can easily install it in Ducker Desktop.
When you get to Ducker
Containers you will find images that we
Viewed Docker Images Viewed Docker Volumes
Then you see Docker
Scout, you have to click here
And if you minimize it a little then it will be advanced.
Image Analysis with Docker Scout using Docker
Scout helps you with image scanning
How does it help me brother, how can I
How do I run Docker Scout? So first of all
Understand that by having Docker Scout do it for you.
What will it give you? As many images as you have
Is it on your local or on your Docker Hub
Docker stores all those images in the repository
Scout can scan and view
that somewhere in its base image or its final
There are no security threats in the image
so let's take it from this
This one of ours is two tier back end latest.
I have picked up the application and now look at it.
He immediately did a vulnerable scan to see if he had
Critical Issues Zero Is There Any Critical
There are no six high severity issues.
There are six medium secure medium severity
There are issues and 52 is low severity, meaning 52
There are issues that even if you don't look at them
will do but six and six high severe and
There are issues of medium severity but brother, this
How will he know what the issues are?
You will need to run some commands for this
commands you go to terminal ok this
Your terminal has opened, now here you will see
All you have to do is create Docker images and from here you can
If you want an image, you can get it from us.
Which image do you want right now?
Our two-tier back and so two-tier back
Copy the name of the end image from here.
Took a copy and all you have to do is docker
Scout Quick View So from Quick View this which
I saw this 66 52 and image in front of you.
Just give him his name, what will he do?
It will first authenticate with your Docker Hub.
So you also need to login to Docker Hub here.
should be okay so the new version is
available okay no problem now what
He is saying, watch this Target Train with Shubham
Two tier back and this is your apple image
There were six high, six medium and 52 low
Savarin means anyone who is very critical
The base image you used is no longer there.
python3.8 slim three high in the same
Severing issues is a medium severity
issue and 28 is a low severity issue, meaning when
You will also report this to your developer.
will tell that instead of the nice python3.8 slim
We can recommend someone else for you.
Will you tell your team lead or do you also tell yourself a little?
And if you do research then you have to research that
You can use a better image than this one.
Docker Scout tells you all these things.
If you want to know more in depth then
One thing remains common, vulnerable end
Exposure CV ES to Docker Scout CV
es and your image name from let's your
The image is titled Train with Shubham Two Tier
back end okay done enter now that
As common as the vulnerable are, that common
This will be scanned for vulnerabilities.
So I understood this much, 64 vulnerable found in
28 packages what vulnerable so he
Exactly told that this particular link
This is where we talk about the vulnerable.
This is a particular link where
This whole thing has been discussed about the vulnerable.
Share the full report with your team.
You can do it and then the team will decide that friend
This is due to the use of a particular package.
He has a serious issue.
Fix it and so on so Docker Scout very
This is a very interesting tool
An interesting tool that lets you customize your images.
Can you analyze it, I enjoyed it interesting
Now let us understand your second bonus.
What is Docker in it, understand it like this that you
Have to build Docker file Have to build Docker Compose
And I have to make a dummy and make three things.
How much time will it take to first edit the Docker file?
Tell me what happens, first write from
Yes, we then write the work after that.
D I
R then what do you write then copy
Open the source code and then run some commands.
Then run CMD and complete your application.
Yes, there are other things in it.
For example, if you want to write the name of the author, then author
You can also write the name of the maintainer if you
If you want to write, you can also write maintainer.
If you want to give labels in this then that too
You can write and so on but this is the work.
You have to do this manually in the Docker file.
Docker has to be built manually
What it does is it's such a readymade
template makes you guys for
I need an example of a Python application.
A Docker file for Docker Compose and a readme
So I just have to write docker in it and in that
Select Python from the options.
here is my docker file docker compose and dm me this
All three will be made, show me this, see, I
I'll go here now and I'll create a folder here.
I make M KDI R
Docker
it test okay a docker called it test
I create a folder then cd docker it
test inside this folder I went now
I'll just write docker in it now
Docker Scout and Docker It are both Docker
Additional features come with the desktop if
You will need to do this separately
Docker Ignore makes it brother of Docker Ignore
what does docker ignore dot docker mean
Ignore is a file in which you
Whatever you write, that will be your final decision.
In container creation or image of p
Sometimes there is no copying in creation, is there?
What happens is we use node modules or environment
Folders keep it all in their code base
But we don't want node modulus and
environment variables and all these things
If the folders are also copied in your image then you
If you can put that in Docker Ignore, then Docker
Ignore that thing while reading the file.
If it gives then this Docker it CI that file also
It also creates a dcker file.
Compose also creates a readme.md.
If he creates it then brother come on let's get it
Started what application platform does
Your Project Use So Your Project Go
is made in
Okay, so I'm going to use the arrow to go up, up, up.
I will stay and I will reach Goa.
So I'm here to go pay and go pay
I'll just press enter what version do you
I want to use it now, I will go and see it brother.
Which is the current latest version of
Go latest version is 1.3 latest version.
Let's do 1.3 okay and I'll put 1.3 here.
I will give 1.1 1.3 no 1.13 enter whats the
Relative Directory with Lending.org of Russia
Main Package Now if you have a
program is main do go or whatever your
The package should be in this directory.
or whatever directory it should be in
I want it, please give me the path, don't go to me now.
There is some code or something, just for testing.
I am showing you, I will put it here.
I will dot it, I will enter it, okay.
Dot what port does your server listen on
How is the application port sometimes
If the number runs on 8000 5000 then my let
This application runs on Rs 8000 per month.
This is a math application, it just asks you questions.
On the basis of these questions, this one is asking
Docker will create the file for you to view now
Warning: No good mod file was found but
It is required to build a
CreateToken
By running docker compose up it became brother
The application has become everything, if I look at your
We created this folder if I ls
I will do the ducker file dummy and make Kapol all these
If I go into the cabin, you will see
Maybe these are some comments about it but
If you look carefully
Services Server Build Context Target
ports everything database database if
If you want to use Postgres then he has everything
I have written it and have also put the health check brother.
what's the matter volume secret put everything
I have given it, I had a lot of fun escape colon double k
Enter cat or else VIM ha cat kar le
cat docker file your docker file also he
I have made it completely, brother, it means it is great and
Well done for creating this user, what a great thing.
is from alpine latest s final what
The thing is, multi-stage has also been made, well done.
So this way your docker in
it within a few minutes, not even minutes within
In a few seconds your Docker Compose Docker
file and also creates a cat readme ducker
What is a dummy? All those docker in the dummy.
The commands are written as let's docker build
what is the command to run docker
what is the command and then to push to docker
What is the command and so on so interesting
Stuff Related to Docker I Hope You Like This Short
You must have liked this bonus if you got it.
Share the video immediately with your friends
because there are a lot of such videos in
I am going to bring it only on train with Shubham
The channel even goes so far as to stay in the video.
Thanks for watching Train V Shubham Channel
Thanks for watching Ending the Stream in
three to one by