Checking Versions and Daemon Health with docker version
Explore docker version and docker info to verify client-server API compatibility, diagnose daemon connectivity issues, and audit Docker runtime configuration.
Published on • November 17, 2026
AI Assistant

When managing Docker environments or troubleshooting build and deployment failures, understanding the exact version details and daemon status is critical. Docker follows a client-server architecture where the docker CLI executable communicates with the dockerd background daemon over a REST API socket.
The docker version and docker info commands serve as your first line of diagnostic tools to verify connectivity, inspect API version matrix alignment, and examine host capabilities.
Inspecting Client vs Server Versions (docker version)
Running docker version queries both the local client binary and the remote (or local) Docker daemon:
docker version
Sample output:
Client: Docker Engine - Community
Version: 27.3.1
API version: 1.47
Go version: go1.22.7
Git commit: ce12230
Built: Fri Sep 20 11:40:00 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.3.1
API version: 1.47 (minimum version 1.24)
Go version: go1.22.7
Git commit: 41273e5
Built: Fri Sep 20 11:38:22 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.22
GitCommit: 7f7911b7dc6942aa43b4573b7fc20d8fe4456a40
runc:
Version: 1.1.14
GitCommit: v1.1.14-0-g2c9f560
docker-init:
Version: 0.19.0
GitCommit: de40101
Key Components Decoded
- Client Version: Details of the
dockerCLI binary executing your command. - Server API Version: The REST API specification version supported by the daemon (
dockerd). - Minimum Version: The oldest API version the daemon accepts. If the CLI sends requests using an API older than this minimum, the daemon rejects them.
- containerd & runc versions: Highlighting the underlying OCI runtime and container supervisor engines.
Daemon Connectivity Check
If the client binary cannot talk to the daemon socket (e.g., standard Linux permissions issue or daemon down), docker version returns only the client portion followed by an error:
Client: Docker Engine - Community
Version: 27.3.1
API version: 1.47
Go version: go1.22.7
...
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Fast Health Checking in Scripts
To programmatically verify daemon availability inside CI/CD pipelines or initialization scripts, test docker version or docker info exit codes:
if ! docker info >/dev/null 2>&1; then
echo "Error: Docker daemon is unreachable or current user lacks socket permissions." >&2
exit 1
fi
Extracting Specific Fields with --format
You can pass Go template strings to extract exact version strings for automation:
# Print server API version only
docker version --format '{{.Server.APIVersion}}'
# Export full version summary as JSON
docker version --format '{{json .}}'
Deep System Diagnostics with docker info
While docker version covers component revisions, docker info reports host system hardware, kernel parameters, runtime configurations, and active storage plugins:
docker info
Selected sample output:
Client: Docker Engine - Community
Context: default
Debug Mode: false
Server:
Containers: 12
Running: 8
Paused: 0
Stopped: 4
Images: 24
Server Version: 27.3.1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
security options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.8.0-45-generic
Operating System: Ubuntu 24.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.52GiB
Docker Root Dir: /var/lib/docker
Critical Health Indicators in docker info
- Storage Driver: Confirms driver type (
overlay2). EnsureSupports d_type: trueis present for Linux host compatibility. - Cgroup Version: Shows whether the host uses Cgroup v1 or Cgroup v2 (
Cgroup Version: 2), which affects memory limit enforcement and OOM handling. - Cgroup Driver: Check if
systemdorcgroupfsis configured to match Kubernetes host recommendations. - Docker Root Dir: Confirms disk mount point (
/var/lib/docker).
Takeaway: Use docker version to audit client-server API version compatibility and quickly test daemon socket connectivity. Complement it with docker info to inspect system-level runtime drivers, cgroups, security profiles, and host resources.