Episode 1. What is Docker and Why — 2022?
Docker is a container technology: A tool for creating and managing containers.
→ Consider Docker equivalent to picnic containers (i.e. all required things in one place)
Why Containers?
When we work in a team, some code supports Node v14.3 only and not v12 (eg. await in top-level)
Let us see some cases where we will challenges:
Case A: If we update versions locally or remote (production might have an older version).
Case B: If we are not working in tech for some time (say node.js) after months we return to our project. Our node.js version might be older but our colleague's version is updated.
Possibilities of code might crash
a. Below Node.js application works in Node v14 or greater.
b. Throws error in Node v12 😢
→ Our environment should be updated to the latest stable version.
Case C: If we are in an independent project and have multiple applications. Say one project require Node.js 12 and another v14.3.
It would hassle to update the software package most time.
Case D: Consider a project that needs to have lots of dependent packages and consider 15 apps version is old and need to update in local and production.
Solution:
Docker is the latest solution for the versions issue.
Video:
Closing Thoughts:
Docker helps us solve our above problems and many others. Let's explore this journey together in upcoming articles, where we will explore updated standards and best practices in 2022.
Thank you for reading till the end 🙌 . If you enjoyed this article or learned something new, support me by clicking the share button below to reach more people and/or give me a follow on Twitter and subscribe Happy Learnings !! to see some other tips, articles, and things I learn about and share there.