AboutExpertiseTalksJourneyWritingContactinfo@furkandanis.com

What Is Docker? What Is Docker Used For?

3 min readFurkan DanışTürkçe orijinal →
What Is Docker? What Is Docker Used For?

Below I'm sharing a post that sums up Docker very well.
Even though I could try to explain it myself, it would end up very similar to other write-ups, so rather than spend my energy on things that already exist, I wanted to save it for other posts.
No need to reinvent the wheel :) Let's discover new things together with other content.

What Is Docker?

Docker is an open-source virtualization platform built for software developers and system administrators. With Docker, you can run Linux and Windows virtual containers (machines) on Linux, Windows, and MacOSX. This platform lets you easily handle the installation, testing, and deployment of web systems. Perhaps its most important feature is that it eliminates the "It worked on my computer, so why didn't it work on the server?" problem.


Unlike well-known virtual machines (VirtualBox, Vmware, etc.), Docker's virtualization architecture does not have a Hypervisor layer. Instead, it accesses the host operating system through Docker Engine and shares the system tools. As a result, it consumes fewer system resources than classic VMs.

image


Docker is built on the LXC virtualization mechanism. A Docker image runs in units called containers. Each container uses a single process. Depending on its power, one machine can run thousands of Docker containers at once. Container images share common system files, which saves disk space. As shown in the figure, application containers use shared bin (exe) files and libraries. In classic virtual machine systems, however, a separate operating system and set of library files must be allocated for each application.



Docker lets you take an image of software in its final installed state and reuse it. You can build these images once and send them to other servers, or you can build different images on each server. By following instruction files called Dockerfiles, every server can rebuild the same image. This way, no manual intervention is needed.


Another feature is that Dockerfiles and images can be extended. If you want to add a few more steps to the instructions, instead of running the commands from the very beginning, it continues from where it left off, which saves time.


Classic VM vs Docker


VMs have a full operating system for each running instance. Docker, on the other hand, uses size-reduced images instead of a full operating system and also shares the host operating system's libraries. However, while this makes Docker friendly in terms of system resource consumption, it also lowers the level of isolation. With all this in mind, we can make the following comparisons.

Comparison VM Docker
OS Full operating system Reduced operating system image
Isolation High Lower
Startup time Minutes Seconds
Versioning None High
Ease of sharing Low High



Both virtualization approaches have advantages and disadvantages relative to each other. From Docker's side, however, it is fair to say that some of its advantages are very critical.


First among them is that it starts up easily. Because Docker doesn't use a Hypervisor, doesn't use a fully installed operating system, and runs close to the host system, it starts within seconds. Another is its aptitude for versioning. One of Docker's most striking features is that it can be versioned. Docker lets us keep a record of the different states of the operating system images it uses. This, in turn, opens the door to sharing prepared images among users. To touch on one more feature: shareability. Operating system images prepared by users or distributors can be pushed to central servers and, at the same time, pulled from these central servers by other users.


The fact that containers run on a single operating system raises security concerns. Docker has brought software-based solutions to this issue. Unless otherwise specified, applications running inside a container cannot see or affect an application inside another container; in other words, they are isolated.

Source: https://www.mediaclick.com.tr/blog/docker-nedir-docker-ne-ise-yarar
how does docker workhow to use dockerwhat is docker used forwhat is docker