Skip to content

What is Docker and what is it for?

Docker packages an application with its libraries, settings and supporting program versions into a container that starts the same way on any computer or server.

Docker is a tool that packages an application together with everything it needs to run, meaning libraries, settings and the versions of supporting programs, into a unit called a container that starts the same way on any computer or server. The starting package is called an image and is described in an instruction file, the Dockerfile; one or more containers are started from an image, and images are kept in a shared store called a registry, of which Docker Hub is the best known. The problem it solves is familiar to every IT department: the program works on the developer's computer and breaks on the production server, because the two machines carry different versions of everything else. With a container the environment travels with the program and that difference disappears. The image format is now an open standard, defined by the Open Container Initiative, so it does not belong to a single vendor.

See also: Microservices vs monolithTwo opposite ways to structure an application: one deployable unit versus independent services. The modular monolith is often the right middle ground.

How it is used day to day

On the developer's computer runs Docker Desktop, the application that makes containers usable without manual setup. When a service needs several pieces, say the application, a database and a queue, one file read by Docker Compose describes them all and a single command starts the whole set. The same package then goes through automated tests and onto the production server inside a release pipeline, which is what makes releases repeatable. When containers grow to dozens or hundreds an orchestrator is needed, Kubernetes being the most widely used: it decides where each one runs and restarts it if it stops. For a small business with a few applications, Compose on a single server is almost always enough.

Container or virtual machine?

A virtual machine simulates an entire computer, operating system included, and weighs gigabytes and takes tens of seconds to start. A container shares the operating system of the server hosting it and holds only the application and the libraries it needs: it weighs megabytes and starts in seconds, so many more fit on one server. The price is looser isolation, since all containers rest on the same system core. The difference that matters to decision makers is another one: who maintains the image. A virtual machine is updated like a computer, while an image has to be rebuilt every time a security fix is released for any of its parts, and if nobody owns that, a working container keeps running with known flaws.

An enterprise example

A manufacturer with an internal management system and three applications built by different suppliers kept them on separate servers, each with its own database and library versions, and every update was a risky intervention. Once the applications are packaged in containers, what was tested is what reaches production, it moves to another server with nothing to reinstall, and going back to the previous version is one command. The infrastructure is then described in versioned files, with infrastructure as code.

Why it matters for decision makers

Docker reduces dependence on the one person who knows how a given server was assembled, and makes it easier to change hosting provider, but it adds a duty: someone has to own the images, the registry and the security updates. If the application is still a single block, containers do not turn it into microservices: those are two separate decisions. There is also a licensing matter. According to the official documentation, Docker Desktop is free for small businesses, with fewer than 250 employees and less than 10 million dollars in annual revenue, while above those thresholds a paid subscription is required. Open-source alternatives such as Podman carry no such constraint: the threshold is worth checking before the tool spreads.

  • Microservices vs monolithTwo opposite ways to structure an application: one deployable unit versus independent services. The modular monolith is often the right middle ground.
  • CI/CDContinuous Integration and Continuous Delivery: every software change is tested and shipped to production automatically and frequently.
  • Infrastructure as Code (IaC)Describing servers, networks and cloud services in versioned code files instead of configuring them by hand, so infrastructure is created and recreated reproducibly.
  • Platform engineeringPlatform engineering designs shared, reusable, self-service internal capabilities as a product, helping internal teams build and operate their own software.
  • Serverless vs On-prem vs EdgeServerless, on-prem and edge describe how and where compute runs: serverless offloads server management, while the other two say where infrastructure sits.

See it in the universe

If you need the AI in production, not in a demo, that is my job.

See AI integrations

Or write to me.