Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 6: Why Docker, Images and How a Container Is Created: मराठी Cards

English cards · Chapter उघडा

उजळणी (Revision) cards

App थेट server वर install का करू नये. Server वर थेट install केलेले apps versions वरून भांडतात आणि machines मध्ये वेगळे वागतात.
उजळणी (Revision) card 1 of 12: App थेट server वर install का करू नये · PNG download करा · Card page उघडा

Lesson: 6.1 Why the app should not be installed straight on the EC2

एक image, आणि container काय नाही. नवशिक्यांना containers छोटे VMs वाटतात आणि आतला data हरवतात.
उजळणी (Revision) card 2 of 12: एक image, आणि container काय नाही · PNG download करा · Card page उघडा

Lesson: 6.2 One image, and what a container is not

Image vs container. जवळपास प्रत्येक नवशिक्याच्या प्रश्नात हे दोन शब्द गोंधळतात.
उजळणी (Revision) card 3 of 12: Image vs container · PNG download करा · Card page उघडा

Lesson: 6.3 Image vs container

पद्धत 1: आधीची image docker run करा. Software चालवायचा सगळ्यात जलद मार्ग म्हणजे दुसऱ्याने आधीच बनवलेली image.
उजळणी (Revision) card 4 of 12: पद्धत 1: आधीची image docker run करा · PNG download करा · Card page उघडा

Lesson: 6.4 Way 1 — docker run an image that already exists

पद्धत 2: Dockerfile वरून docker build. तुमच्या app ला स्वतःची image लागते.
उजळणी (Revision) card 5 of 12: पद्धत 2: Dockerfile वरून docker build · PNG download करा · Card page उघडा

Lesson: 6.5 Way 2 — docker build from a Dockerfile, then run

पद्धत 3: docker compose up. खऱ्या apps ना अनेक containers एकत्र start करावे लागतात.
उजळणी (Revision) card 6 of 12: पद्धत 3: docker compose up · PNG download करा · Card page उघडा

Lesson: 6.6 Way 3 — docker compose up (pointer)

पद्धत 4: docker commit (फक्त emergency). चालू container बदलून save केला तर तो कसा बनला ते लपतं.
उजळणी (Revision) card 7 of 12: पद्धत 4: docker commit (फक्त emergency) · PNG download करा · Card page उघडा

Lesson: 6.7 Way 4 — docker commit, emergency only

Nginx, PHP आणि MySQL: तीन containers, तीन कामं. सगळं एका container मध्ये ठेवलं तर update किंवा scale करणं अवघड.
उजळणी (Revision) card 8 of 12: Nginx, PHP आणि MySQL: तीन containers, तीन कामं · PNG download करा · Card page उघडा

Lesson: 6.8 nginx, PHP and MySQL — three containers, three jobs

docker history: layers वाचा. मोठ्या images pull करायला slow आणि जास्त security holes घेऊन येतात.
उजळणी (Revision) card 9 of 12: docker history: layers वाचा · PNG download करा · Card page उघडा

Lesson: 6.9 docker history — read the layers

Image जास्त safe करा. Default images बऱ्याचदा root म्हणून चालतात आणि attackers वापरू शकतील अशी tools ठेवतात.
उजळणी (Revision) card 10 of 12: Image जास्त safe करा · PNG download करा · Card page उघडा

Lesson: 6.10 Make the image safer

Docker Hub ला push आणि दुसरीकडे pull. Images तुमच्या laptop वरून servers पर्यंत जायला हव्या.
उजळणी (Revision) card 11 of 12: Docker Hub ला push आणि दुसरीकडे pull · PNG download करा · Card page उघडा

Lesson: 6.11 Push to Docker Hub and pull on another machine

Lab: एक image, तीन नावं. एका image ला अनेक नावं बघेपर्यंत tags नवशिक्यांना गोंधळात टाकतात.
उजळणी (Revision) card 12 of 12: Lab: एक image, तीन नावं · PNG download करा · Card page उघडा

Lesson: 6.12 Lab — one image, three names

मुलाखत (Interview) cards

Server वर apps install करण्याऐवजी containers का? Containers प्रत्येक app ला स्वतःच्या libraries आणि versions देतात, आणि same image सगळीकडे same चालते.
मुलाखत (Interview) card 1 of 12: Server वर apps install करण्याऐवजी containers का? · PNG download करा · Card page उघडा

Lesson: 6.1 Why the app should not be installed straight on the EC2

Container म्हणजे virtual machine का? नाही. Container म्हणजे host kernel share करणारा वेगळा process. VM कडे स्वतःचा पूर्ण OS असतो.
मुलाखत (Interview) card 2 of 12: Container म्हणजे virtual machine का? · PNG download करा · Card page उघडा

Lesson: 6.2 One image, and what a container is not

Image आणि container मध्ये फरक काय? Image: read-only package. Container: छोटा writable layer असलेली चालू copy.
मुलाखत (Interview) card 3 of 12: Image आणि container मध्ये फरक काय? · PNG download करा · Card page उघडा

Lesson: 6.3 Image vs container

docker run -d -p 8080:80 nginx काय करतो? nginx background मध्ये start करतो आणि host port 8080 container port 80 ला जोडतो.
मुलाखत (Interview) card 4 of 12: docker run -d -p 8080:80 nginx काय करतो? · PNG download करा · Card page उघडा

Lesson: 6.4 Way 1 — docker run an image that already exists

साधी Dockerfile समजवा. FROM base, WORKDIR, COPY files, RUN install, CMD start command.
मुलाखत (Interview) card 5 of 12: साधी Dockerfile समजवा. · PNG download करा · Card page उघडा

Lesson: 6.5 Way 2 — docker build from a Dockerfile, then run

docker compose कधी वापरता? App ला एका machine वर अनेक containers (web, DB, cache) एकत्र start करायचे असतील तेव्हा.
मुलाखत (Interview) card 6 of 12: docker compose कधी वापरता? · PNG download करा · Card page उघडा

Lesson: 6.6 Way 3 — docker compose up (pointer)

docker commit का टाळायचं? ते हाताने बदललेला container save करतं, steps चं record नाही. कुणीच rebuild किंवा review करू शकत नाही.
मुलाखत (Interview) card 7 of 12: docker commit का टाळायचं? · PNG download करा · Card page उघडा

Lesson: 6.7 Way 4 — docker commit, emergency only

एका container मध्ये एकच process का? प्रत्येक भाग एकटा update, scale आणि restart करता येतो, आणि logs स्पष्ट राहतात.
मुलाखत (Interview) card 8 of 12: एका container मध्ये एकच process का? · PNG download करा · Card page उघडा

Lesson: 6.8 nginx, PHP and MySQL — three containers, three jobs

Image मोठी का ते कसं शोधता? प्रत्येक layer ची size बघायला docker history चालवा, मग सगळ्यात मोठी step fix करा.
मुलाखत (Interview) card 9 of 12: Image मोठी का ते कसं शोधता? · PNG download करा · Card page उघडा

Lesson: 6.9 docker history — read the layers

Docker image जास्त safe कशी करता? छोटा base, non-root USER म्हणून चालवा, आत secrets नाहीत, .dockerignore, आणि scan.
मुलाखत (Interview) card 10 of 12: Docker image जास्त safe कशी करता? · PNG download करा · Card page उघडा

Lesson: 6.10 Make the image safer

Image दुसऱ्या server ला कशी share करता? Registry नावाने tag, login, push; दुसऱ्या server वर pull.
मुलाखत (Interview) card 11 of 12: Image दुसऱ्या server ला कशी share करता? · PNG download करा · Card page उघडा

Lesson: 6.11 Push to Docker Hub and pull on another machine

एका image ला अनेक tags असू शकतात का? हो. Tag म्हणजे image ID कडे point करणारं नाव. अनेक नावं एका image कडे point करू शकतात.
मुलाखत (Interview) card 12 of 12: एका image ला अनेक tags असू शकतात का? · PNG download करा · Card page उघडा

Lesson: 6.12 Lab — one image, three names

तुलना (Comparison) cards

Docker image vs Docker container. Docker app आणि त्याला लागणारं सगळं एका package मध्ये बांधतो, म्हणजे ते सगळीकडे सारखंच चालतं.Image: read-only package (app + libraries + settings). जणू recipe.Container: image ची चालू copy. जणू त्या recipe ने बनवलेली डिश.
तुलना (Comparison) card 1 of 3: Docker image vs Docker container · PNG download करा · Card page उघडा

Lesson: 6.3 Image vs container

Container vs Virtual Machine. Container: host kernel share करणारा वेगळा process.VM: hypervisor वर स्वतःचा OS असलेला पूर्ण computer.
तुलना (Comparison) card 2 of 3: Container vs Virtual Machine · PNG download करा · Card page उघडा

Lesson: 6.2 One image, and what a container is not

Dockerfile vs docker commit. Dockerfile: image build करायच्या लिहिलेल्या steps.docker commit: बदललेल्या container चा snapshot.
तुलना (Comparison) card 3 of 3: Dockerfile vs docker commit · PNG download करा · Card page उघडा

Lesson: 6.7 Way 4 — docker commit, emergency only