
"It works on my machine" used to end many deployment conversations. An application that ran on a developer's laptop failed on the test server because of a different library version, a missing system package or a configuration file nobody remembered to copy. Docker removed most of that class of problem by packaging an application together with everything it needs to run, so the same package behaves the same way on a laptop, a CI runner and a production server.
This article explains what Docker is, how containers work, where Docker is used, when it is the right tool, and how it compares with virtual machines and other container tools.
What is Docker?
Docker is an open-source platform for building, shipping and running applications in containers. A container is a lightweight, isolated process that carries the application's code, runtime, libraries and settings, and shares the host machine's operating system kernel instead of booting its own.
Docker began inside dotCloud, a platform-as-a-service company founded by Solomon Hykes. Hykes demonstrated it publicly at PyCon in March 2013 and the project was open-sourced the same month. It spread so quickly that dotCloud renamed itself Docker, Inc. later that year, and Docker 1.0, the first release declared ready for production, shipped on 9 June 2014 at the first DockerCon.
Containers themselves were not new; Linux had the underlying kernel features for years. What Docker added was a simple developer experience: a text file that describes an image, one command to build it, a public registry to share it, and one command to run it anywhere. In 2015 Docker and other companies founded the Open Container Initiative (OCI), so image and runtime formats became open standards that other tools can use as well.
How Docker works
Images and containers. An image is a read-only template: a base operating system layer, the language runtime, your dependencies and your code. A container is a running instance of an image. You can start many containers from the same image, and each one is isolated from the others.
The Dockerfile. Images are built from a Dockerfile, a short text file that lists the steps: start from a base image, copy the code, install dependencies, set the start command. Because the recipe is code, it lives in version control and produces the same image every time.
Layers and caching. Each step in a Dockerfile creates a layer. Layers are cached and shared, so rebuilding after a code change only redoes the steps that changed, and images that share a base do not store it twice.
Isolation from the kernel. On Linux, containers are isolated with kernel namespaces, which give each container its own view of processes, network and file system, and with control groups (cgroups), which limit how much CPU and memory it can use. On macOS and Windows, Docker Desktop runs a small Linux virtual machine to provide the same kernel.
Registries. Built images are pushed to a registry, such as Docker Hub, GitHub Container Registry or a cloud provider's registry, and pulled from there by servers and CI pipelines.
Key features
- Portable images that run the same way on any machine with a container runtime.
- Docker Compose, which defines a multi-container application, for example an API, a database and a cache, in one YAML file and starts it with one command.
- Fast start-up, usually seconds, because there is no operating system to boot.
- Volumes and networks for persistent data and for containers that need to talk to each other.
- Multi-stage builds that keep build tools out of the final image, making it smaller and safer.
- OCI compatibility, so images built with Docker run on Kubernetes, Podman and cloud container services.
Where Docker is used
- Local development: every developer runs the same database, queue and services with one command, without installing them on the laptop.
- CI/CD pipelines: builds and tests run in clean, repeatable containers, and the image that passes the tests is the one that is deployed.
- Microservices: each service is packaged and deployed independently, often orchestrated by Kubernetes.
- Modernising legacy applications: an older application is containerised first, which makes it easier to move between servers or into the cloud.
- Hybrid and on-premise deployments, where the same image has to run in a customer's data centre and in the cloud.
When to choose Docker, and when not to
Choose Docker when:
- Several environments, from development to production, have to behave the same way.
- The system has several services, or depends on databases and queues that developers need locally.
- You want deployments to be repeatable and rollbacks to be a matter of running the previous image.
- The application may move between cloud providers or between cloud and on-premise.
Think twice when:
- The application is a single small service on a managed platform that already handles builds and runtime; a container adds a layer you may not need.
- You need strong isolation between untrusted workloads. Containers share the host kernel; virtual machines isolate more strongly.
- The workload depends on specific hardware or a non-Linux operating system feature that containers cannot provide cleanly.
- The team has no one to own image hygiene. Containers do not patch themselves; base images need regular updates and vulnerability scans with tools such as Trivy or Snyk.
Docker and its alternatives
| Option | What it is | Best fit |
|---|---|---|
| Docker | Build and run containers, with Compose and Desktop | Development, CI and single-host deployments |
| Podman | Daemonless, rootless container engine from Red Hat | Linux servers that need rootless containers |
| containerd + nerdctl | The runtime underneath Docker and Kubernetes | Minimal hosts and Kubernetes nodes |
| Kubernetes | Orchestration of containers across many machines | Running many services at scale |
| Virtual machines | Full guest operating system per workload | Strong isolation, different operating systems |
The most common comparison is Docker vs virtual machines. A virtual machine emulates hardware and runs its own operating system, which takes more memory and takes longer to start, but isolates workloads more completely. A container shares the host kernel, so it is smaller and starts in seconds. Many production systems run containers inside virtual machines to get both.
The second is Docker vs Kubernetes, which are not competitors. Docker builds and runs containers; Kubernetes schedules and manages many containers across a cluster. Kubernetes dropped its direct Docker Engine integration in version 1.24, but images built with Docker still run on it, because both follow the OCI standard. Helm then packages the Kubernetes side, and pipelines such as GitHub Actions build and push the images.
How we use Docker at Internative
We use Docker to standardise how applications are delivered, to make deployments faster and to keep infrastructure simpler to manage. The same images let us build scalable, portable systems that run in the cloud and in on-premise environments alike.
If you are moving an older application to a more manageable infrastructure, or setting up delivery for a new product, our product modernization team can help you decide where containers fit.
Frequently asked questions
What is Docker used for?
Docker packages an application with everything it needs into a container image, so it runs the same way on any machine. Teams use it to run development environments, to build and test in CI pipelines, to deploy microservices and to move applications between servers and clouds.
Is Docker free?
Docker Engine, the core runtime, is open source under the Apache 2.0 licence and free. Docker Desktop, the application for macOS and Windows, is free for personal use, education, open-source projects and small businesses; larger companies need a paid subscription for it.
What is the difference between Docker and a virtual machine?
A virtual machine runs a complete guest operating system on virtualised hardware. A Docker container shares the host's kernel and only packages the application and its dependencies. Containers are smaller and start in seconds; virtual machines isolate workloads more strongly.
Is Docker still used?
Yes. Docker remains the most common way to build container images and run containers in development and CI. In large production clusters the runtime underneath is often containerd, which Docker itself uses, and the images are the same OCI images Docker builds.
What does "dockerize" mean?
To dockerize an application is to write a Dockerfile for it and build it into a container image, so it can run in a container instead of being installed directly on a server.
Related services
Where this topic becomes an engagement.
Keep reading
The articles that follow this one.



