Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but wonβt spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
Assignment# 1 β What is Docker and Container? Define in 15 points with example image
Docker:-
is a tool which manages Containers and it provides industry a const efficient , time efficient and quality infrastructure. Docker is a utility built on top of kernel which is responsible to allocate resources from main system which is used by Containers. Dockers basically talks to kernel as per User requests and creates below core resources from kernel Namespace which will be used by containers:-
PID TREE
USER
NET
MNT
Docker Architecture is as below :ββ
HumanRequest -> Docker Client + Docker Server + ContainerD + KernelD
Above red highlighted part is of Docker
Container:-
Container is an utility which initializes PID Tree FileSystem, MNT FileSystem , NET FileSystem and attached these to USER FileSystem.
There can be multiple copy of containers in system which is managed by Docker. Containerβs main components are as below
ROOT FyleSystem + USER FileSystem + APP FIleSystem
Assignment# 2 β What is the differnece between docker pause and unpuase?
Docker pause keeps entry alive in database of and only holds the live execution whatever was happening inside the docker, and making it unpause will resumes processes from where it was paused.
That means inside docker current state of container is still maintained when it is paused β¦ like PID , MNT, NET etc. And these are not released. Once unpaused, same entries are utilized again.
Assignment# 3 β What is the differnece between docker stop and kill?
UNlike docker pause, when docker stop happens , resources like MNT, PID Tree , NET are released . Memory is free to be utilized by others. Only thing is it still mainatans the entry of User for which it was created. So if next time docker is started again, User mapping will be same although other resources are re-initialized like NET, MNT, and PID Tree.
Kill docker means we are removing any trace of any entry related to that docker hence this time no user mapping will be maintained. All will be erased.