Skip to main content

How to Check the Docker Version and That Docker Is Running with docker version

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Before you follow a Docker tutorial, two questions matter: which Docker do you have, and is it running? docker version answers both, because it asks the Docker engine for its version as well as printing the command line's own. This guide reads both, with real output from Docker 29.9.3 on Docker Desktop 4.100.1.

Syntax​

Syntax
docker version
docker version --format '{{.Server.Version}}'
PartWhat it means
docker versionThe client's version and the engine's (the server's)
--format '{{.Server.Version}}'Only the engine's version

The reference: "The version command prints the current version number for all independently versioned Docker components." The same commands work in PowerShell.

Prerequisites​

  • Docker: Docker Desktop on Mac or Windows.

Step 1: Show Both Versions​

Terminal
docker version
Output
Client:
Version: 29.9.3
API version: 1.56
Go version: go1.26.10
Git commit: 5457199
Built: Tue Nov 3 21:41:57 2026
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.100.1 (247138)
Engine:
Version: 29.9.3
API version: 1.56 (minimum version 1.40)
Go version: go1.26.10
Git commit: 70efc0e
Built: Tue Nov 3 21:41:25 2026
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: v2.4.2
GitCommit: b7a25261e029d68978bbf290df0a62fc819b3c51
runc:
Version: 1.5.3
GitCommit: v1.5.3-0-g46365c62
docker-init:
Version: 0.19.0
GitCommit: de40ad0

docker version in a terminal: the Client section with version 29.9.3 for darwin/arm64, and the Server section, Docker Desktop 4.100.1, with Engine 29.9.3 for linux/arm64 and its containerd, runc and docker-init versions.

  • Client: the docker command itself, 29.9.3, running on the Mac (darwin/arm64).
  • Server: the engine inside Docker Desktop 4.100.1, also 29.9.3, running on Linux. Its section appears only when the engine answers, so a Server section means Docker is running. Pointed at a socket where no engine listens, docker version printed the Client section and then failed to connect to the docker API at unix:///tmp/no-engine-here.sock; check if the path is correct and if the daemon is running.

Step 2: Print Only the Engine's Version​

Terminal
docker version --format '{{.Server.Version}}'
Output
29.9.3

docker version --format with the .Server.Version field in a terminal, printing 29.9.3.

One line, handy in scripts that need the engine's version.

Common Mistakes​

MistakeWhat happensDo this instead
Reading only the Client linesThe client can print its version while the engine is downLook for the Server section, or ask for {{.Server.Version}}
Using docker --version to check the engineIt prints only the client's version: Docker version 29.9.3, build 5457199Use docker version

Troubleshooting​

SymptomLikely causeFix
Only the Client section, then an error about connecting to the Docker daemon or APIThe engine isn't answering, usually because Docker Desktop isn't runningStart Docker Desktop: Fixed: Cannot connect to the Docker daemon

FAQ​

What about docker info?​

docker info asks the engine for much more: the reference says it "displays system wide information regarding the Docker installation". docker info --format '{{.ServerVersion}} {{.OperatingSystem}}' printed 29.9.3 Docker Desktop.

Do the client and engine versions have to match?​

No, but each side supports a range of API versions: here the engine accepts API versions from 1.40 up to 1.56.

Conclusion​

docker version showed client and engine 29.9.3 on Docker Desktop 4.100.1; the Server section proves the engine is running. --format '{{.Server.Version}}' prints just its version.

Additional Resources​