0

I understand that it is software shipped in some sort of binary format. In simple terms, what exactly is a docker-image? And what problem is it trying to solve? And how is it better than other distribution formats?

As a student, I don't completely get the picture of how it works and why so many companies are opting for it? Even many open source libraries are shipped as docker images.

kmario23
  • 57,311
  • 13
  • 161
  • 150
  • Related (duplicate?): [How is Docker different from a normal virtual machine?](http://stackoverflow.com/q/16047306/744178) – jwodder Apr 26 '17 at 14:54
  • A docker image makes sense only as the distribution mechanism of a *container*. By itself it's no better than other distribution formats – Panagiotis Kanavos Apr 26 '17 at 15:10

1 Answers1

1

To understand the docker images, you should better understand the main element of the Docker mechanism the UnionFS.

Unionfs is a filesystem service for Linux, FreeBSD and NetBSD which implements a union mount for other file systems. It allows files and directories of separate file systems, known as branches, to be transparently overlaid, forming a single coherent file system.

The docker images сonsist of several layers(levels). Each layer is a write-protected filesystem, for every instruction in the Dockerfile created own layer, which has been placed over already created. Then the docker run or docker create is invoked, it make a layer on the top with write persmission(also it has doing a lot of other things). This approach to the distribution of containers is very good in my opinion.

Disclaimer: It is my opinion which I'm found somewhere, feel free to correct me if I'm wrong.

Roman Kiselenko
  • 43,210
  • 9
  • 91
  • 103