docker version
Shows the version of the Docker CLI (Client) and of the Docker Engine it talks to (Server).
In more detail
If only the Client section appears with an error, the CLI is installed but the daemon is not running or you lack permission to reach its socket. The Server section reports Linux even on a Mac, because the daemon runs in a Linux virtual machine there.
Example
docker versionRelated terms
- Docker Engine — The open-source server part of Docker, made of the Docker daemon and the tools it drives, that runs on Linux.
- Docker CLI — The docker command you type into a terminal; it sends requests to the Docker daemon and prints the answers.
- Docker socket — The file-like connection point, usually /var/run/docker.sock, through which programs send commands to the Docker daemon.
- docker info — Prints how the Docker Engine is set up: storage driver, default runtime, control group version, resources and more.
Taught in
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers