A quick introduction of docker containerization. This slide provides overview of other related things such as docker-compose, swarm mode and orchestration.
2. Bhanuchander210
Virtualization
Type 1 :
● One OS doesn’t affect other / Gyest OS
● Ex : Microsoft Hyper-V, VMware ESXi Server, Xen Server
Type 2 :
● Host-Guest OS Methodology
● Ex : Microsoft Virtual PC, VMware Workstation, Oracle VBox
3. Bhanuchander210
Containerization
OS level Virtualization
●
● Isolated virtual machine like user space running instances
●
● Ex : Zones, Virtual Kernels
Virtual Machine
● Having Hypervisor.
● It consumes more. For
example ~1.2Gb/instance
● So heavier
● Slower
● Needs bigger footprint (RAM
and storage)
Containers
● Replaces hypervisor.
● Consumes very less
~2.5Mb
● Lightweight
● Faster
● Smaller footprint (No RAM
and individual storage)
7. Bhanuchander210
Docker Commands
Basic
● docker inspect - Inspecting the information about the custom object.
● docker rm - Removing the object provided in arg.
● docker info - Printing the docker information.
● docker rename - All objects can be renamed.
● docker login - Registry Login
● docker logout - Registry Logout
For containers,
● docker container
● docker ps - Process status for current running processes.
● docker start - Initiating the container.
● docker restart - Restarting the already started container.
● docker cp - Copy the files from the local directory to the container path.
● docker port - Port mapping on running container.
● docker pause
● docker unpause
For Images,
● docker image
● docker search - Search images in customized docker registry.
● docker pull - Pulling images from registry.
● docker push - Pushing images to the customized registry.
● docker save - Save the image as compressed file.
● docker load - Load the compressed file as an image.
● docker rmi - Removing images.
● docker run - Create + Start the container in single command.
Others
● docker volume - Mounting the local directory as a volume object to
the container.
● docker network - Network configuration customizing for bridge,
vlan and overlay networks.
● docker stats - Statistics on the container information on the
machine environment.
● docker top - Normal Top command for quick view.
12. Bhanuchander210
Others:
● Rancher
● Docker Machine
● Kubernetes vs Rancher vs Docker Machine
Deployment:
Objects
● POD
● Replica Set
● Deployment
● Service
● Namespace
In my system around 53 types of kubernetes Controllers and objects are available..
Demands for Swarm Cluster
Ex : Minikube, katakoda,....
Kubernetes