Docker Containerization and Virtualization

Hatice Yıldız
3 min readJul 11, 2023

--

In our digital age, various technologies are needed to deploy, manage and run software applications quickly and securely. In this context, Docker containerization and virtualization technologies have been a major breakthrough for developers and operations teams. Docker provides an effective solution to ensure portability, rapid deployment and reliable operation of applications.

In this article, we will discuss what Docker containerization and virtualization is, what Docker Desktop is, and the benefits, advantages and disadvantages that Docker provides.

Docker Containerization and Virtualization

In Docker containerization, the host operating system is used, while in virtualization, a new virtual machine is created through a hypervisor and a full operating system is run on that virtual machine.

Docker containers run on the operating system kernel, which is shared with the host’s operating system kernel. Docker is a set of technologies and tools that enable containers to be isolated and portable. Each Docker container provides an independent working environment, and these containers can be isolated from each other and run in isolation on the host.

In virtualization, a full operating system is installed on each virtual machine through a hypervisor. Each virtual machine provides an independent working environment and has its own operating system, memory and resources. Therefore, with virtualization technology, multiple operating systems can run on the same physical server.

In virtualization, it is possible to use different operating systems. Each virtual machine is installed with its own operating system, creating an isolated environment. This allows you to run different operating systems on the same physical machine.

In Docker containerization, the situation is slightly different. Docker is a technology that allows containers to be isolated and portable. Docker containers run by sharing the operating system kernel. Therefore, applications running in Docker containers are isolated in a way that runs on the host’s operating system kernel.

Docker images are typically created and run on Linux. Docker uses “containerization” technology, a specialized operating system feature on Linux. The Linux kernel is used to enable Docker containers to run in isolation.

However, Docker has the ability to run on different operating systems. Docker offers an application called Docker Desktop for operating systems such as Windows and macOS. Docker Desktop enables running Docker containers on these operating systems using a Linux-based virtual machine.

So, when you run Docker on Windows or macOS, a Linux virtual machine is actually used to run Docker containers. This way, Docker containers can run on Windows or macOS and Linux-based images can be used.

I am adding a link for Docker Desktop below.

Benefits and Advantages of Docker

Portability: Docker provides portability of containers. Through images, it becomes possible to quickly build, deploy and run applications. This ensures that applications can be run seamlessly across different systems or cloud environments.

Fast Deployment: Docker enables fast and repeatable deployment of applications. The use of images simplifies deployment processes and enables applications to run quickly.

Isolation: Docker containers provide isolated working environments. A problem that occurs in one container does not affect other containers. This is an important advantage in terms of security and debugging.

Resource Efficiency: Docker enables the use of smaller and lighter containers. It enables efficient use of hardware resources by using resources more effectively.

Scalability: Docker allows you to easily scale applications. Multiple containers can be run simultaneously and performance can be increased with load balancing.

Disadvantages of Docker

Isolation Limitations: Docker containers do not provide complete isolation when sharing the operating system kernel. This may not be a viable option in some scenarios where complete isolation is required.

Performance Impact: Although Docker containers are lighter than virtual machines, there may still be a performance impact in some cases. However, this impact is usually negligible.

In this article, we have covered a general understanding of Docker containerization and virtualization, the use of Docker Desktop, the benefits, advantages and disadvantages of Docker.

You can connect with me through my Linkedin network. 🤸🏻

👇 👇 👇

https://www.linkedin.com/in/haticeyildiz-/

--

--