Deatiled topics and the corresponding reference links
| Sl No | Topic | Details | last update |
|---|---|---|---|
| 1 | Overview of Docker: Image & Container | YouTube Lesson | 2022-08-24 |
| 2 | Set up Image & Container | YouTube Lesson | 2022-08-24 |
| 3 | Import Python Docker Image from Docker Hub | YouTube Lesson | 2022-08-20 |
Docker version 20.10.17 is installed from Docker Installation
Virtualization:
In the traditional application set-up, each application is having dedicated OS & Server considering only a fraction of the server capacity will be used and
will be using diff versions of framework based on teh needs. The following overhead costs can be saved in the cloud environment like dedicated server cost, OS cost, Workforce/support cost
Now, the concept of virtualization is helping to reduce the above cost:
Applications are running on the same physical server but on a dedicated virtual machine. Hypervisors make it possible to use more of a system's avialable resources & provide greater
IT mobility as the guest VMs are independent of the host hardware. This means they can be easily moved between different servers by reducing space/energy/maintenance.
Docker:
Docker is open platform to manage infrasturcture through easy portable methodologies for code developemnt, shipping , testing by reducing the time from Dev to Prod.
It allows to have loosly isolated containers which are self sufficient to run teh applications independently and the security set up permits concurrent execution of multiple contained on a given host.
Post the developemnet easy and fast push to other enviroment, working parallel to fix the bug and redeploy, streamlining dev lifecycle & managing CI/CD workflows are teh great advantages of Docker.
It's container based platform can be executed in local or virtaual machine or cloud/hybrid environments. Scaling up ot Tearing down apps/services a sper teh needs is very easy.
Docker is lightweight and fast. It provides a viable, cost-effective alternative to hypervisor-based virtual machines, so you can use more of your compute capacity to achieve your business goals.
Docker Daemon listens for Docker API requests and manages Docker objects such as images, containers, networks & volumes and it can also communicate with other daemons to manage Docker services.
Docker Client is the primay mode of communication for easy interface with docker API and it allows comm with more than one daemon
Docker Desktop consists the Docker daemon (dockerd), the Docker client (docker), Docker Compose, Docker Content Trust, Kubernetes and Credential Helper
Docker Registry stores Docker images. Docker Hub is a public registry that anyone can use, and Docker is configured to look for images on Docker Hub by default. You can even run your own private registry.
When we use the docker pull or docker run commands, the required images are pulled from your configured registry. During docker push command, image is pushed to configured registry.
Image: this is one of the docker objects with a template of instruction of creating container. It can't be modified oce created. Image can be created based on other image with additional customization
Sometimes, new image can be created using Dockerfile as shown in teh below section. When we change the Dockerfile and rebuild the image, only those layers which have changed are rebuilt.
This is part of what makes images so lightweight, small, and fast, when compared to other virtualization technologies.
Container: is a runnable instance of an image. It's various functionalities like create, start, stop, move, or delete acan ebe managed using the Docker API or CLI. A container can ebe coonected to one or more networks.