Why and why not use Docker | Advantages Disadvantages | Interview Question and Answer | Code Decode

  Рет қаралды 6,890

Code Decode

Code Decode

Күн бұрын

in this video of code decode we have explained advantages and disadvantages of using docker in your project.
Docker Interview Questions and Answers part 1 : • Docker Interview Quest...
Did you use Docker in your Project? If yes why ?
Yeah we did. We had a common problem of Developers saying “BUT IT WORKS ON MY MACHINE”
There are some scenarios which motivated us to move to dockerized application
We sometimes faced issue that our same code base when deployed to test, dev , worked fine but breaks on prod or QA servers . We found that Even though code base is same but dependencies / their version were problematic hence if we are able to package everything in one big container and run application in that container with same configuration, dependence then things wont break abruptly. Hence we moved to Docker
Apart from that we achieved few more advantages like -
Docker is an open platform for developing, shipping, and running applications.
Docker enables you to separate your applications from your infrastructure so you can deliver software quickly.
With Docker, you can manage your infrastructure in the same ways you manage your applications.
By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.
Use cases involves -
Environment standardization
Faster configuration with consistency
Better disaster recovery - Disaster is unpredictable. However, you can back up a Docker image (also called “snapshot”) for the state of the container at that back-up moment, and retrieve it later when serious issues happen. For example, a hardware failure just happened and you need to switch your work to a new hardware. With Docker, you can easily replicate the file to the new hardware.
Sometimes we found a bug when deploying a new version of one particular software. We can revert to the last version with the previous Docker image easily. Without Docker, we have to set up the rollback step from runtime to runtime
Improvement in adoption of DevOps
Did you find any disadvantages of using Docker ?
Security - Containers are lightweight, but you pay for this with security. Since containers in most cases use a common operating system, there is a general risk that several containers will be compromised at once if a host system is attacked. This is less likely with VMs as each VM uses its own operating system.
Containers don't run at bare-metal speeds - Docker containers use the Host Kernal only hence it will use as much system resources as the host’s kernel scheduler will allow. Docker might even make it slower. if the kernel detects that the host machine’s memory is running too low to perform important system functions, it could start killing important processes (may be your docker process too)
Persistent data storage is complicated. By design, all of the data inside a container disappears forever when the container shuts down, unless you save it somewhere else first. There are ways to save data persistently in Docker, such as Docker Data Volumes, but this is arguably a challenge that still has yet to be addressed in a seamless way.
Not For Simpler Deployable applications - So, if you have a complicated and tedious deployment process, Docker will help you out a lot. If you have a simple app, it just adds unnecessary complexity.
Need to Use Different Operating Systems or Kernels- With virtual machines, the hypervisor can abstract an entire device. You can use Microsoft Azure to run both instances of Windows Server and Linux Server at the same time. Docker image, however, requires the same operating system it was created for.
If an app is developed on Windows, but the production runs on Linux, you will not be able to use Docker effectively
Most Asked Core Java Interview Questions and Answers: • Core Java frequently a...
Advance Java Interview Questions and Answers: • Advance Java Interview...
Java 8 Interview Questions and Answers: • Java 8 Interview Quest...
Hibernate Interview Questions and Answers:
• Hibernate Interview Qu...
Spring Boot Interview Questions and Answers:
• Advance Java Interview...
Angular Playlist: • Angular Course Introdu...
SQL Playlist: • SQL Interview Question...
GIT: • GIT
Subscriber and Follow Code Decode
Subscriber Code Decode: www.youtube.co...
LinkedIn : / codedecodeyoutube
Instagram: / codedecode25
#docker #dockerinterviewquestions #codedecode

Пікірлер: 27
@bhavyasingh5234
@bhavyasingh5234 Жыл бұрын
You are too good. You just impart all the important technical knowledge in such simplicity. Would request you to put more videos on this.
@CodeDecode
@CodeDecode Жыл бұрын
Thanks Bhavya❤️❤️
@AshishSingh-rx4sq
@AshishSingh-rx4sq Жыл бұрын
Eager to have more videos on this. Please upload further videos soon. Thanks, your video are awesome as always!
@CodeDecode
@CodeDecode Жыл бұрын
Sure Ashish 😊👍
@aakashsonkusare69
@aakashsonkusare69 5 ай бұрын
You explained really well ma'am, great video. Can we run both WIndows and Linux server in AWS as well at the same time?
@sunithan9470
@sunithan9470 Жыл бұрын
Thank you for great video, please continue the series am waiting for it.
@CodeDecode
@CodeDecode Жыл бұрын
sure
@sproutboot
@sproutboot Жыл бұрын
Code decode.... I needed it! Thanks you read my mind..
@CodeDecode
@CodeDecode Жыл бұрын
😊😊
@user-sapdev
@user-sapdev Жыл бұрын
please continue the series.. very useful content
@CodeDecode
@CodeDecode Жыл бұрын
Sure we will upload more videos
@user-sapdev
@user-sapdev Жыл бұрын
@@CodeDecode Thank you so much. Eagerly waiting for new videos
@ganpatinatrajan5890
@ganpatinatrajan5890 Жыл бұрын
Great Explanations... Please cover Kubernetes n Jenkins...
@CodeDecode
@CodeDecode Жыл бұрын
Sure Ganpati 👍👍
@235gurukeerthana5
@235gurukeerthana5 8 ай бұрын
hi can you please explain me about the hazelcast caching
@prudhvinadh5786
@prudhvinadh5786 Жыл бұрын
Hi Code decode, I have been following your tutorials last month. It's really impressive. for this lecture continuation I am looking for it which is moving the springboot application creating a docker image.
@CodeDecode
@CodeDecode Жыл бұрын
kzbin.info/www/bejne/eqi6nJ17rNh8arM
@diljeet6435
@diljeet6435 Жыл бұрын
can you please make a video explaining where the web application is deployed ? Is it in tomcat , linux ,aws , docker or mix of all .I am confused .
@CodeDecode
@CodeDecode Жыл бұрын
It's because we didn't cover it's architecture and theory much. When we will go ahead deeper you will understand it much better. 😊😊
@rishiraj2548
@rishiraj2548 Жыл бұрын
Thanks for great tips
@CodeDecode
@CodeDecode Жыл бұрын
😊👍
@deepakvishwakarma193
@deepakvishwakarma193 Жыл бұрын
great video , thanks lot
@CodeDecode
@CodeDecode Жыл бұрын
you're welcome
@sayanbiswas8847
@sayanbiswas8847 Жыл бұрын
Please add a seperate playlist/add the docker series videos to some playlist, easier to find and watch during interview prep.
@CodeDecode
@CodeDecode Жыл бұрын
Sure Sayan thanks for noticing it. We will do that 😊👍
@lijageorge4427
@lijageorge4427 Жыл бұрын
Can you please upload full stack java developer interview questions
@CodeDecode
@CodeDecode Жыл бұрын
Sure 😊
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
Kubernetes Crash Course for Absolute Beginners [NEW]
1:12:04
TechWorld with Nana
Рет қаралды 3 МЛН
Tell Me About Yourself | Best Answer (from former CEO)
5:15
The Companies Expert
Рет қаралды 7 МЛН
Docker Для Начинающих за 1 Час | Docker с Нуля
52:43
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 2 МЛН
What is Docker? Easy way
7:34
Hitesh Choudhary
Рет қаралды 587 М.
Лучший Гайд по Kafka для Начинающих За 1 Час
1:15:01
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 302 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН