Sub topic 4
Licensing for Docker Desktop
This chapter assumes you know the difference between Docker Desktop and Docker Engine from the previous chapter, and that you can run basic commands in a terminal. It explains which license applies to each product and how to decide whether your use needs a paid subscription. It is not legal advice. Docker can change its terms, so confirm the current wording on Docker's pricing and subscription agreement pages before you decide for an organization.
Two products, two licenses
Docker ships several pieces of software, and they do not share one license.
| Component | License model | Cost to use |
|---|---|---|
| Docker Engine (daemon and CLI) | Open source, Apache License 2.0 | Free for any use |
| Docker Compose and Buildx plugins | Open source, Apache License 2.0 | Free for any use |
| Docker Desktop | Proprietary, Docker Subscription Service Agreement | Free in some cases, paid in others |
Docker Desktop bundles the open-source Engine with a graphical dashboard, a managed virtual machine, Kubernetes integration, and other extras. The bundle as a whole falls under Docker's subscription agreement, even though some parts inside it are open source. Installing Docker Engine from the apt repository, as you will do later in this tutorial, involves no subscription at all.
When Docker Desktop is free
Docker's terms allow free use of Docker Desktop in these cases:
- Personal use.
- Education, such as students and teachers in a learning setting.
- Non-commercial open-source projects.
- Small businesses, defined as fewer than 250 employees and less than $10 million USD in annual revenue.
A company needs a paid subscription (Pro, Team, or Business) if it goes over either limit. One condition is enough: a company with 100 employees and $50 million in revenue is not a small business. Business also adds administrative features, such as centralized settings management and single sign-on, which larger organizations often need anyway.
Deciding whether you need to pay
The decision follows the order below. Check the free cases first, then the size limits.
If the flow ends at a paid subscription and you do not want to pay, you have an alternative on Linux and a partial one elsewhere. On Linux, install Docker Engine directly. On macOS and Windows, Docker Engine does not run natively, because containers need a Linux kernel. You would have to run Engine inside a Linux virtual machine or Windows Subsystem for Linux (WSL) yourself, which works but costs you setup time and the integrated experience that Desktop provides.
Checking what you have installed
On a machine you did not set up yourself, you may not know which product is running. The server platform name tells you.
docker version --format '{{.Server.Platform.Name}}'Docker Desktop reports a name that starts with Docker Desktop, followed by its version number. A standalone Engine install reports Docker Engine - Community. If the output starts with Docker Desktop, the licensing rules above apply to that machine.
Common mistakes
- Assuming "open source" covers everything. The Engine is open source, but the Desktop application is not. Having Engine source on GitHub does not make the Desktop installer free for every use.
- Using one threshold instead of both. The free tier for businesses needs both conditions to hold. Failing either one requires a subscription.
- Treating a license as a technical limit. Docker Desktop does not block you from running it. Compliance is your responsibility, so record the decision somewhere your organization can find it.
- Forgetting about contractors and shared images. If a larger company's engineers use Desktop on a project, the company's size is what counts, not the project's.
Exercise
A company has 120 employees and $40 million in annual revenue. Developers want to install Docker Desktop on their Windows laptops for commercial work. Does the company need a paid subscription? Name one alternative for a developer on Ubuntu.
Show answer
Yes. The company is under the 250-employee limit but over the $10 million revenue limit, and exceeding either limit requires a paid subscription. A developer on Ubuntu can install Docker Engine from the apt repository instead, which is open source and free for any use.
Exercise
You inherit a Linux server and run docker version --format '{{.Server.Platform.Name}}'. The output is Docker Engine - Community. Do Docker Desktop's licensing terms apply to this server?
Show answer
No. That output means the standalone Docker Engine is installed, which is under the Apache 2.0 license. Docker Desktop's subscription terms apply only when the name starts with Docker Desktop.