To be honest, few days back Docker was alien term to me until Sitecore 10 release.
I was so curious to explore at least to understand motive to use Docker, but used to give justification to myself that Leave it, it's part of Devops.After getting some idea on Docker understood that why everyone talking about Docker, why so popular.
In this article will be covering:
What problem Docker actually solve?
Why Docker playing lead roll?
What I understood as a developer?
Problem which Docker solve
Scenario 1: As a sitecore developer, whenever used to setup machine for development or installing any software almost every time used to get issue, if lucky then take less time to resolve and then again get installation issue for other steps or for other software and this going on.
Scenario 2: Let's assume we have three python applications, which planning to host on single server, since all application's python version are different as well as dependencies. Then we can not install different python version on same server.
We can achieve this by Docker host, but with same hosted OS mean if 2 application need to be hosted on Linux and last one on window then in this case will be requiring 2 docker host - 1 for Linux and another for windows.
Docker to me - pack all minimal required dependencies as image and then use as ready to use container.
For any application, all minimal required dependencies can be packed as image file and manage as version control - ready to use for anyone anytime anywhere.
An open source, platform independent that help to create container (consist of memory, ram, s/w, application code) which can take time at once but from next time will be ready to deploy at any platform.
Steps to use docker:
Basically first use to create image by packing everything or can download images from Docker Hub.
And then with the help of image create container where required to run application.
(in one line - Create an exe of application and then run on any windows application)
Docker Flow
setup/install docker depends on your operating system (Let's say Windows)
once install open docker command prompt and run
docker version
will see docker version information in two part
• Docker client - which will show version details of machine where docker installed (host machine).
• Docker server - this will show all the version details of Linux kernel details.
Hope this help to get basic understanding that Why Docker?
No comments:
Post a Comment