What Is Docker? CLI, Engine, Desktop, and Your First Container
Docker is a set of developer tools for obtaining images, running containers, and managing their environment. Learn how the CLI sends requests to the Engine daemon, what Desktop and Compose add, and how to verify a disposable first run.
What Is Docker? CLI, Engine, Desktop, and Your First Container
Docker is a set of developer tools and platform components for obtaining container images, running applications as containers, and managing that runtime environment. When you enter docker run, the command-line client sends a request through the Docker API to the Engine daemon, which prepares the image and starts a container. Distinguishing Docker’s components from containers themselves makes errors and setup choices easier to understand.
What does the name Docker refer to?
People use “Docker” to mean the docker command-line interface (CLI), Docker Engine, Docker Desktop, or Docker Compose. These components work together but are not the same program. A container is an isolated application process; an image is the packaged files and configuration used to start it. Docker provides tools to build, distribute, and run them. See our guides to container isolation and image manifests and layers.
What happens when you enter a command?
Docker Engine uses a client-server design. The CLI is the client; dockerd is a long-running daemon that manages images, containers, networks, and volumes. The CLI calls the Docker API, and the daemon performs the requested work, pulling an image when needed.
You → docker CLI → Docker API → dockerd
├─ images
├─ containers
└─ networks and volumesOn Linux, Engine can run directly on a host. Docker Desktop bundles developer tools and environment integration; on macOS and Windows, Linux containers run using an Engine inside a lightweight Linux VM. A working CLI alone does not prove that a daemon is available. The CLI can also target a remote Docker context, so check docker context show before commands that could stop or remove workloads.
How do Engine, Desktop, and Compose differ?
| Component | Role | Typical use |
|---|---|---|
| Docker Engine | API and daemon for images, containers, networks, and volumes | Linux server or container host |
| Docker CLI | Sends user commands to an Engine API | Local or remote daemon |
| Docker Desktop | Developer application integrating CLI, Engine, and desktop setup | Workstations |
| Docker Compose | Describes and manages several application services in compose.yaml | Local multi-container development |
A Compose service represents an application component that may run one or more containers from the same image and configuration. Compose can create the services’ networks and declared persistent volumes. It is an application run model, not a Dockerfile that builds an image.
How can you run a first container?
Install Docker Engine or Desktop for your operating system and ensure its daemon is running. The following documented example checks client/server connectivity and runs a small test image. If the image is not cached, Docker retrieves it from a registry. --rm removes the container when it exits.
docker version
docker run --rm hello-worldCheck that docker version reports both Client and Server. A welcome message from the second command indicates that the basic request-and-run flow worked. This is an example from the Docker CLI documentation, not a command tested on the authoring host. Since --rm removes the stopped container, it is normal for it not to appear in docker ps -a afterward.
For an application described by Compose, common lifecycle commands are:
docker compose up -d
docker compose ps
docker compose logs
docker compose downup starts declared services; ps and logs help inspect them; down removes the project’s running resources. Put data that must survive container replacement in a named volume or another explicit storage system. down -v can delete named volumes, so inspect the project and option before using it where data matters.
How should you diagnose common errors?
For Cannot connect to the Docker daemon, check that Engine or Desktop is running, inspect docker context show, and confirm that docker version includes Server information. On Linux, investigate the installation’s service and permission configuration instead of broadly granting access. If the daemon responds but image retrieval fails, check the image name, network or proxy, registry access, and authentication.
If a container exits immediately, use docker ps -a and docker logs <container>. In a Compose project, docker compose ps and docker compose logs <service> show service-level state and output. Remove tokens, passwords, and personal data before sharing logs.
Docker does not automatically make a container secure or preserve its data. Image provenance and updates, process privileges, published ports, secrets, and backups require separate decisions. Docker simplifies development and execution; it does not choose an operational security or data-lifecycle policy for you.
Sources and scope
[Docker Engine overview](https://docs.docker.com/engine/)
[Docker Desktop overview](https://docs.docker.com/desktop/)
[Docker Desktop networking](https://docs.docker.com/desktop/features/networking/)
[Docker run reference](https://docs.docker.com/reference/cli/docker/container/run/)
[Compose application model](https://docs.docker.com/compose/intro/compose-application-model/)
This guide reflects Docker documentation checked on 22 November 2026 and describes a general developer workflow. Installation and behavior vary by operating system, Docker context, Engine version, and Desktop configuration; consult the documentation for your environment.