Logo

dev-resources.site

for different kinds of informations.

40 days of Kubernetes: Docker Fundamentals

Published at
6/28/2024
Categories
docker
fundamentals
kubernetes
cka
Author
ak_15
Author
5 person written this
ak_15
open
40 days of Kubernetes: Docker Fundamentals

To understand Kubernetes, we should understand the concept of containers.

In the traditional way of development, the application deployment in local environments such as development and testing worked fine but would fail when promoted to production. The "it works on my machine" problem was never-ending.
When analyzed, the reasons behind the failure were mostly due to environment misconfigurations and missing dependencies or libraries etc.

To solve this problem, we use containers

What are containers?
Containers are packages of software providing an isolated environment with all the necessary libraries, dependencies, application code, and the operating system required to run an application making sure that the application is running in the same way irrespective of the host operating system. The purpose of containers is to build-ship-run the code.

Unlike virtual machines, which has its own Infrastructure, OS, binaries, dependencies of its own where the chance of resources being underutilized are very high; Containers are lightweight environments that include only the required components that is required by the application. Containers are isolated but they share some of the resources and infrastructure of the host.

Docker is a platform that carries out containerization by building, running and shipping the tasks.

Docker File: A set of instructions that are required for building docker image.
Docker Image: Its a template packaged with necessary software's and dependencies.
Docker Container: It's a running instance of a Docker image.

The Key commands of Docker are:

  • docker build: This command builds a Docker image based on the Docker file.
  • docker push: This command pushes the created image to a Docker registry.
  • docker pull: This command is used to pull the image from the registry to the desired environment.
  • docker run: This command creates and runs a container from the pulled image.

Docker Architecture:

Image description

Docker Client is the interface using which users interact with Docker.
Docker Daemon (DockerD): All the commands issued by the docker client are received and executed by Docker daemon. It is the most important service that runs in the background managing the containers.
Docker Host: It is a component of docker architecture that is responsible for running one or more containers.
Docker Registry: A Docker registry is a storage for Docker images. They can be pushed to a registry before deploying them to various environments.
Container Runtime: The component that is responsible for running containers.
When a client request is sent to Docker Daemon, it interacts with container runtime to build an image based on Dockerfile and then the image is pushed to Docker registry and pulled from it when required.

We will learn in the next step to create a Dockerfile, build an image, and execute our first containerized application.

Reference: https://www.youtube.com/watch?v=ul96dslvVwY

cka Article's
30 articles in total
Favicon
Turning Markdown into Learning: publishing a challenge on labs.iximiuz.com
Favicon
CKA Quick Check Points -- RBAC
Favicon
CKA Quick Check Points -- Network
Favicon
CKA Quick Check Points -- Logs & Configs
Favicon
CKA Recap -- Deployment
Favicon
ClusterIP vs. NodePort
Favicon
CKA Recap -- Ingress & NetworkPolicy
Favicon
Kubernets Storage Demos
Favicon
3. CKA Storage
Favicon
Why must a Kubernetes cluster have an odd number of nodes
Favicon
Understanding Pod Topology Spread Constraints in Kubernetes
Favicon
Deployments and Replica Sets in Kubernetes
Favicon
40 days of Kubernetes: Docker Fundamentals
Favicon
Understanding Kubernetes Pods and YAML Fundamentals
Favicon
Creating a Kubernetes Cluster with Kubeadm and Containerd: A Comprehensive Step-by-Step Guide
Favicon
Mastering Multi-Stage Builds in Docker 🚀
Favicon
Mastering Docker Fundamentals: The First Step in Becoming a Certified Kubernetes Administrator
Favicon
How I Passed the Certified Kubernetes Administrator (CKA) Exam and How You Can Too
Favicon
AWS EKS Ingress - Canary
Favicon
Certified Kubernetes Administrator (CKA) Prep.
Favicon
Certified Kubernetes Administrator (CKA) - Several Successful Story
Favicon
YouTube 13k Subscriber crossed! Exciting Giveaway
Favicon
How to Pass the Certified Kubernetes Administrator Examination
Favicon
'Kubernetes Complete Course In 10 Hours' – your ultimate beginner's guide to Kubernetes FREE!
Favicon
Kubernetes CKA Exam Question Bank .. 17 Questions with Complete Lab .. In 3 hours .. FREE!
Favicon
ROAD TO CKA [Certified Kubernetes Administrator ]-Core Concept- Pod(Day-7)
Favicon
ROAD TO CKA [Certified Kubernetes Administrator ]-Kubernetes Architecture(Day-4)
Favicon
Installing Kubernetes-1.27.0 in Ubuntu 22.04
Favicon
ROAD TO CKA [Certified Kubernetes Administrator ]-What Kubernetes is & is not?(Day-3)
Favicon
ROAD TO CKA [Certified Kubernetes Administrator ]-Core Concept- Control Plane/Master Node (Day-5)

Featured ones: