Day-29 | Docker Interview Questions with Answers | How many can you answer ? | Comment your score
ฝัง
- เผยแพร่เมื่อ 25 มิ.ย. 2024
- Support my work
www.buymeacoffee.com/abhishekprd Hi Everyone, In this class, we will try to see what are some of the most commonly asked Docker Interview Questions and their Answers ?
Please post in the comments sections, How many were you able to answer.
GitHub Link (Material)
==================
github.com/iam-veeramalla/Doc...
Telegram channel
===============
telegram.me/abhishekveeramalla
About me:
-----------------
LinkedIn: / abhishek-veeramalla-77...
GitHub: github.com/iam-veeramalla
Medium: / abhishekveeramalla-av
TH-cam: / @abhishekveeramalla
everybody will do launch paid devops course, but this man do totally free, hats off man with my bottom heart, your work very much appreciate again thankyou launching for this course.
It's my pleasure
Question: what are real-time challanges with docker?
Ans. Docker has a single point of failure. If docker daemon goes down, application is down.
- docker run as root user which is a security threat.
- resource constraints - if you are running too many containers on a single host, you may experience resource constraints. This can lead to slow performance or crashes.
Solution is podman. Which solves your docker problem. It is not single point failure, it can run as normal non-root user.
Ques. What steps you will take to secure containers?
Ans.
1. Use distroless or image with not too many packages as your final image in multi stage build.
2. Ensure that networking is configured properly. If required configure custom bridge network and assign them to isolate networks. Create different bridge network for finance application.
3. Use utilities like Sync to scan your container images. Before you push them to production or staging environment.
One major diff between ADD and COPY is if you add a file present in .tar.gz format it'll be automatically unzipped in created container whereas copy doesn't have this feature )
Agree .. on to the point .. Missed it during the video .. Thanks for adding it here :)
By free means only in terms of money. All your videos compete with top tier trainings in India. In explaining the comcepts, "thaggede le" thank you Abhishek. 🙏👍👌
Thanks alot brother
@@AbhishekVeeramalla annaya paid course cheyyaindi many others are also doing but they are not crystal clear about concepts
Dear Abhishek you are doing a great service to the community. Sincerely thank you anna
Thanks alot
Hi Abhishek sir, From day 23 to 29 was very clear and you have cleared many doubts this was the best content about containers and docker I never seen in TH-cam and finally, I scored 11 answers
Amazing
Abhishek you are the super star of the DevOps thank you so much
In this globalized world all are running back to money
but you are uploading free videos with real time scenarios it help full all .thank u, please keep on post
Thanks alot
Thanks abhishek sir for the wonderful course content. I'm confident enough.
Docker is a
Open Source
PAAS based Platform .
It is a container based application tool which have all the dependencies , library and binaries irrespective of the fact whatever OS it is .
Thanks Abhishek,The Docker concepts r very clear i have seen other courses previously but ur content gave me confidence..thanks again for bringing in good content for free ..even the paid courses dnt teach this much
Thanks a lot
Believe me
Aap Devops, Cloud computing ke IIT , IIM, IISC University sab kuch ho sir ❤
TQ for sharing the video sir, it's help me a lot to understand what type of questions the interviewer is going to ask and u covered all topics in docker with clear explanation
Much appreciated Abhishek, Really helpful for all kind of audiences in DevOps domain
Awesome
Thank you anna you are doing awesome anna you are irreplaceble with any one thank you so much from bottom
of my heart
Thank you so much for teaching 💓
Thanks for sharing covering this Abhishek, Really Helpful. Hearing for the 1st time about "Sync" utility and how its helpful but able to answer all the questions.
Snyk
Thank you very much for letting me refresh docker knowledge in quickly.
Thanks alot
Thank you .
Thanks abhishek for sharing these informative Question.
Most welcome
For the challenge of Docker Daemon as root, i used the concept of Apparmor. Bringing your docker up with Apparmor will bring up much more secure docker
Interesting .. I haven't tried that
Lovely, thank you. this is a valuable information
Glad it was helpful!
this video gave real vibe of interview scenario thanks alot abhishek ...
You are most welcome
We would be delighted if you come up with a session on how to write a Dockerfile for real-time projects...Once again, thanks for our selfless work to the community, Abhishek Anna!! ♥
Iam very much impressed with your classes please continue and cover some real time projects please use different build tools..cicd pipeline and use plug-in also sir..
Thanks, will do!
Thank You Sir for day 23-29! I was really excited for docker & Kubernnetes.
I was able to answer 8 questions.
😎😎😎
Just thanks🎉
You have discussed all 12 questions previously, but get to know a few more points (real-time challenges and steps to secure containers) from the last 2 questions.
Thank you so much Abhishek 🙏
God Bless You 😇
😍😍😍
Thank youu Abhishek
As usual one stop solution for devops.. thanks a lot abhi and kudos to your efforts.
❤️
Thank you Abhishek.
This video is a gem.
As u said it's a crux of the docker videos you made.
The checkboxes as well 👌
Glad you liked it
Hi Abhishek, If possible please add questions like - what are layers present in docker file with examples.
Awesome job!!!!!
Thanks alot
Thanks a lot brother..its very clear in networking concepts in docker as well as bridge and host network. Thank you soo much!!
Glad to hear that
Hai Abhishek, you have explained all topics in much detailed way. Can you please make a small video to explaining the docker-compose and how this is useful to perform multiple docker services containers.
Please as per your free time do consider it Abhishek. Thank you
Ok noted .. sure
You should be a udemy tutor... specially for those scenario based questions..
You are the best ❤️, thanks alot for the content/knowledge that you are sharing 😊
My pleasure!
I am waiting this video 😍 thnx sir
Awesome. Please share
Please create a blog on Podman vs Docker with a Hands-on project for production environment .
Bro very thanks please also make videos for docker swarm and docker compose. This will help us more in future.
Hey .. sure
Great course 💗
Thanks for your support Jyothsna ❤️
hi abhishek firstly i thankful for providing valuable devops course in free. Can you make a deep dive in containers networking explaining overlay n/w , Macvlan
Great effort!! THANKS ALOT ❤
You're welcome 😊
Thank you for the wonderful explanation🙂
Thanks a lot
Nice one 👏
Thanks alot
thank you sir , For giving me search a overall view how to secure the containers ,network secure
Amazing
You are truly gem bhaiya❤
thanks alot
Hello Abhishek appreciate your efforts ,Thank you so much if you can share more interview questions or links that will be great help.
Sure
Thanks a lot, Abhi🙏
Welcome 🙏
anna , also create a video or shorts on buildah as you told it resolves some of challenges of docker ..
There is a complete video
Anna , also add one on one connecting Li nk with you , I want to connect to you on that link
abhishek please do videos on docker swarm and docker compose
Nice one. can you please include little more practical challenges that might you faced in a real time....
Sure .. Noted
Awesome sir again,
I answered 11 questions, need to improve the english more,
One question though sir, What are the benefits of joining TH-cam channel / benefit of Telegram channel?
Hi Abhishek sir,please make a viedio on docker swarm and docker compose
Hi Abhishek, you are doing an amazing job!!! Coming to my query, I am a bit confused when you say that scurity of containers is less compared to that of a VM, but the fact remains that in real world, containers in all probability will be set up on the VMs only, so it seems a contradiction, may be my fundamental understanding is wrong..
Hello, Thanks for the great DevOps playlist. I am learning a lot through your teachings.
I am just wondering if there is a video for docker swam or docker compose?
Can you also explain what is the difference between multi-stage docker builds and docker compose?
Yes there is a video on docker compose
@@AbhishekVeeramalla ok I will check it out
Thanks for your response
nice explain. thanks.👍
Welcome
i got 9 correct bro. But i need to develop my english so that i can tell the answers in structured way
No one can explain in these days 😍
Thanks a lot
Hello Abishek, thanks for all but I have a question would it reduce windows image as well? in terms of light weight? what about license term will work on this case for windows?
Superb
Thank you!
Hi Abhishek bro, how long can we sustain our career with Devops in the market if we learn?
Thanks bro
No problem, Anytime
just to point out one thing, the diagram which u have used for question 2 is wrong...n i really appreciate the way u explain things as well as i think 90% of the content is very relevant n real-time...Appreciate ur efforts bro...i'll donate some amount if u allow us to do so because creating content also needs resources
Hi Sagar .. Thanks for the support.
The diagram is taken from official docker website, I don't think it can be wrong :p .. okay on a serious note, what do you think is wrong ? Please share :)
You can become a member of our channel Sagar or reach out to me on LinkedIn
@@AbhishekVeeramalla actually i meant to say that diagram is less informative like in VM side of diagram u can see Host OS is totally missing and they have directly given Hypervisor which is not correct just that it creates confusion..but no worries once checked properly confusion gets cleared...
Aap itne acche kyun ho .....😊
May goddess Saraswati give you more and more knowlege....ahh but share it with us also ...😊
Bro tell me how many real time projects in this playlist or else entire channel? And what are the day or video number?
Is that the projects can I mention my cv or not
For each topic there are projects. You can mention in cv
@@AbhishekVeeramallatq for your reply ❤
all and very easily
🔥
Question. What is multi stage build in docker ?
Ans. Concept of container itself is to keep it lightweight.
Multi stage build allows you to build your docker container in multiple stages allowing you to copy artifacts from one stage to other. The major advantages of this is to build light weight containers. All dependencies and heavy base image were required only in build stage
Final application build artifact(jar file) requires only Java runtime, not the dependencies required to build the application.
So, final image size will drop from 800 MB to 20 mb.
Ques. What are distroless images in docker
Ans. Containers are also exposed to security vulnerabilities, cuz they are minimal os, still. Some images such as ubuntu comes with os related vulnerabilities or MySQL related dependencies.
To solve this, image size was further shrunk. Distroless image are very very minimal such as scratch are hardly 1-2 mb. Instead of base image use distroless image. You don't even have basic command such as apt.
Abhishek, you introduced Buildah initially and is their any plan to make a session on it ? Also, could you please provide example for docker prune as well ..
Yes, there will be a session on Buildah . You can also refer to existing video on builah on my channel .. just search for Buildah in the videos
about 8 questions, Can you have a full video on Docker compose.
Sure
can we use 3-4 same containers in docker? so one goes down one will serve the application?
can we have more questions like related to storage driver,volume manager and space related Abhishek..
10/12
9/12
i can able to answer 9 questions..
❤
❤️
Do make one video on current devops fresher job market also bcoz companies are only hiring exp people. No calls for fresher bro
Noted
Hi abhishek garu thanks for your videos,one of the interview question is how do you check the vulnerabilities of docker image we created. 2.What happens if you update the image to the existing will it overwrite? 3.What happens if you update the image while container is running?
1 - sync
2- Yes, if you update the image to the existing one, it will overwrite the existing image. This is because Docker images are immutable, meaning that they cannot be changed once they are created.
3 - If you update the image while a container is running, the container will continue to run the old image. The new image will not be applied to the running container until it is restarted.
@@normalman7076 thanks
I have added all the question in md file and created a pull request. It will help others you can check it and merge,
Thanks
Thanks for the wonderful session, so this distroless image can be used only with multi stage docker container, Right ?
Mostly yess
Hey Abhishek, It will be great if u can share all questions and answers in file.
Sure I will next time
sir, casn you please explain about docker swarm and docker compose?
Docker swarm and compose are very less used .. so currently focus is Kubernetes
I know 8 questions
Very Good. Keep it up
make combo of one programming lang mysql and nginx real use cases
Noted
Can I have handson in aws without signup ?
10questions
34:18 How can we configure the resources ?
Can you make k8s interview questions
For experience people
Sure.. will upload
Hi,
Difference between multi-Stage build vs docker-compose?
They are two completely different.
Multi stage build is used to copy artifact's from one stage to another and build light weight and more secure containers.
Docker compose is used to manage multiple containers in one file
Hi bro ,
In question 11 , u told that running docker daemon as root is a challenge...am sorry ...bcoz i feel usually root users will be sysadmins and they will have good subject knowledge and why should it turn as security threat and challenge....
Pls help me understand
Tnx !!
Hi sir is there any extra benefits to take up join button...
Some video or live sessions just for members
What are the daily activities you do in docker? How to answer this question in interviews?
in some docker file we can write so many cmd commands but its take latest cmd command(last cmd command) argument so what is purpose of other cmd
explain me
Explained in the previous videos. It is the starting command when u run a contianer.
For example, assume you have a docker image with python django app. If you don't write CMD ["python", "manage.py", "runserver"] .. user should manually login to the container and execute that command.
@@AbhishekVeeramalla thanks abhishek
Could you please start a new. Series for freshers
This series is for freshers as well
In interviews ,they ask from git, jenkins, docker, ansible, kubernetes, linux ,shell script, monitoring, troubleshooting, terraform, aws....My question is how to set interviewer expectation to only those parts in which i am strong as i having just knowledge on few components not having hands on....but if you dont mention these all in CV , no call and if we have just theoritical knowledge ,we get grilled .....so how to showcase our best tools so that we can ace interview....kindly suggest
Good question.. I will take this as a video
@@AbhishekVeeramalla Thanks for considering ,pls guide on this asap its a req...as i m in my interview process...so that will be of grt help...
@@jyotikansal191 Did you got any solution?
9
Great
10
Perfect
Abhishek Sir, I could not find Join Button to your channel. how to join pls guide me.
Hey, Join button should be just beside the subscribe button
@@AbhishekVeeramalla is not showing. I am from Bangladesh. Is there any country specific?
A typo in the last slide I guess, the utility is called Snyk not Sync.
What is cve in Q12