Vezi pagina în română

IT Glossary

Docker: images, containers, the Dockerfile and Compose

The tool that packages an application together with everything it needs, so that it runs identically on any computer or server.

6
sections
7
questions answered

Docker is the platform that packages an application with its libraries and settings into an image and runs it as an isolated container that behaves the same on a laptop, a test server and production; its engine is open source under the Apache 2.0 licence and has been since March 2013. “It works on my machine” has long been a costly sentence in software delivery. It means the application ran on the developer's laptop and failed on the server because a library version differed, a setting was missing, or the operating system had been patched on one and not the other. Docker removes the sentence by changing what gets delivered: instead of code plus a list of installation instructions, the team ships a container, the application with its runtime, libraries and configuration sealed into one image. For a buyer the interesting consequence is leverage. Containerized applications move between hosting providers through configuration changes rather than migration projects, new environments appear in minutes, and the answer to whether another supplier could take this over stops depending on one person's memory of how the server was built.

Why it matters for your business

The end of works-on-my-machine

Identical images across laptop, test and production remove the class of failures that appear only after go-live.

New environments in minutes

A fresh test copy, a demo for a prospect or a replacement server is created from the same image instead of rebuilt by hand.

Portability between providers

Containers run the same on any major cloud or on your own hardware, which keeps hosting negotiable rather than locked in.

How Docker works: image, container, registry

Everything starts from a Dockerfile, a text file with the build steps. The docker build command turns it into an image: a read-only template made of layers, one for each instruction. When something changes, only the changed layers are rebuilt, which is why repeated builds are fast.

The docker run command starts a container from the image, the running instance. Anything not saved in a volume disappears when the container is removed. Images are stored in a registry: Docker Hub is the default, and companies can also run a private registry.

The docker client talks to the dockerd service over a REST API, and dockerd builds, runs and distributes the containers. Isolation between containers comes from Linux kernel namespaces.

Dockerfile and Docker Compose

The Dockerfile is the written recipe of the image: FROM picks the base image, COPY brings in the application files, RUN installs the dependencies, CMD sets the start command. Being code, it lives in the repository next to the application, so anyone can rebuild the same environment a year later.

Docker Compose describes all of an application's services in one YAML file, for example the application, a PostgreSQL database and a web server, together with their networks and volumes. The preferred file name is compose.yaml, and docker-compose.yml is still accepted. The docker compose up command starts the whole set at once.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

Docker vs a virtual machine

A virtual machine runs on a hypervisor and carries its own operating system for each machine. A container shares the host kernel and starts only the application process, so it is smaller, starts faster and lets more applications share one server.

A virtual machine is still the answer when you need a different operating system or kernel than the host, or stricter isolation between customers who do not trust each other. On Mac and Windows, Docker Desktop runs Linux containers inside a lightweight virtual machine (on Windows, with Hyper-V or WSL 2).

The general concept is called containerization, and orchestrating many containers across several servers is the job of Kubernetes; both have their own glossary pages.

Docker Engine vs Docker Desktop: what is free

Docker Engine, meaning the dockerd service and the docker command line, used on servers and in CI pipelines, is open source under the Apache 2.0 licence and free, including commercially. Docker Desktop, the graphical application for Windows, Mac and Linux, is free only for personal use, education, non-commercial open-source projects and companies with fewer than 250 employees and less than US$10 million in annual revenue. Above either threshold a subscription (Pro, Team or Business) is required.

Government entities pay at any size. Docker's terms include local authorities and companies owned or controlled by the state, so town halls, state utilities and state-owned companies fall under the subscription rule. Source: Docker Subscription Service Agreement, section 3.3, last updated 26 August 2026. The rule is part of Docker's global agreement, so it applies outside Romania too.

Cost and licensing for a concrete project are covered on the Docker technology page.

Frequently asked questions

Is Docker a virtual machine?

No, and the difference shows up on your bill. A virtual machine emulates whole hardware and carries its own operating system. A container shares the host kernel and isolates only the application, so it is smaller and starts faster, and the same server runs more workloads.

Is Docker free for my company to use?

Docker Engine is open source and free, including commercially. Docker Desktop is free only below 250 employees and US$10 million annual revenue; above either threshold it needs a per-user subscription, and government entities pay at any size (Docker Subscription Service Agreement, section 3.3). Servers and pipelines are unaffected.

What is a Dockerfile?

A short text file listing the steps to build the image: which base to start from, which dependencies to install, which files to copy, which command to run. It sits in the source repository alongside the code, which means the recipe for your production environment is version-controlled and reviewable rather than living in someone's head or on an undocumented server.

What is Docker used for in a company?

Docker gives identical environments for development, testing and production, a new installation with one command, and automated testing in CI/CD. The application moves easily between hosting providers, and several applications can run isolated on the same server.

What is Docker Compose?

Docker Compose is the tool that starts an application made of several containers from a single file, usually compose.yaml. The file lists the application's services, for example the app and its database, and the docker compose up command starts them all.

What is the difference between Docker and Kubernetes?

Docker builds images and runs containers, usually on one server. Kubernetes starts, restarts and distributes many containers across several servers, so it comes later, when an application outgrows what a single server can carry.

Can a public institution use Docker Desktop for free?

No: Docker's terms require a paid subscription for any government entity, including local authorities and state-controlled companies, regardless of headcount. Docker Engine, run on servers, stays free.