Please enable JavaScript.
Coggle requires JavaScript to display documents.
Section 11 : Docker - Coggle Diagram
Section 11 : Docker
297 : Section Overview : - There's one problem we encounter as our application get bigger and bigger - our gihub project grow, as more code is added it become Monolithic - that is it become this one big monster that needs to make sure it's all working, All parts are working so that it function.
-
You need to make sure that this project not only works on your laptop/machine where you have a certain Operating System, Certain version of Operating System, Certain version of python/node/java and many other things, many other libraries that depends on each other and their versions
Most often when people try to run their project on different machine or computer they encounter error, because just because it runs on one machine/computer doesn't nessarily means it will run on other machine too.(that is in the environment the piece of code run on.)
We need a way for us to be able to run our programs and our application in all possible environment.
-
Many of todays web applications are built around the idea of containers, the nice small boxes that can be run anywhere instead of a giant monolithic application that does everything.
Companies like Amazon,Netflix have their product composed of multiple layers - These layers can be consider as services.
Each have their own containers, doing it's own thing and communicating with each other to make the whole system work.
-
304 : Docker Commands
-
-
-
-
we can install ubuntu and run ubuntu commands like apt list, apt get - to install things to make sure that your container is working as suppose to.
-
-
299 : Docker Container
Let's go through a bit of history lesson, It's always important to ask, why did this tool get built? Why did people spend time and money creating it -with any tools that we use.
So before docker we had something called virtualise machine. We have tools like VMWare or Virtual box and Virtual Machine are what we call a sandbox environment. Which contains a full fledge computer with it's virtual hardware ,OS,Kernel software.
This allows us to solve this problem of having things run in an environment (that is this green environment ,orange,red) in a consistant, predictable manner. And because there were such big things that had their own OS and Libraries that sometimes it took a few minutes to even boot up these environments.
-
-