docker version command
The docker version command displays version information for the Docker client and server.
The docker version command helps you confirm the currently installed Docker version as well as detailed version information for the client and server.
There is also a docker --version command used to display Docker's version information.
Syntax
docker version [OPTIONS]
OPTIONS description:
-
-f :Specify a template file for the returned values.
Example
Display Docker version information.
$ docker version
Client: Docker Engine - Community
Version: 20.10.7
API version: 1.41
Go version: go1.13.15
Git commit: f0df350
Built: Wed Jun 2 11:57:37 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.7
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: b0f5bc3
Built: Wed Jun 2 11:55:47 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.6
GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d
runc:
Version: 1.0.0-rc95
GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output explanation
Client: Information about the Docker client.
Version: The client's version number.API version: The API version number.Go version: The Go language version used to compile the Docker client.Git commit: The Git commit ID corresponding to this version.Built: The build date.OS/Arch: The operating system and architecture.Context: The current Docker context.Experimental: Whether experimental features are enabled.
Server: Information about the Docker server (daemon).
Engine:Version: The server's version number.API version: The API version number (and the minimum supported version).Go version: The Go language version used to compile the Docker server.Git commit: The Git commit ID corresponding to this version.Built: The build date.OS/Arch: The operating system and architecture.Experimental: Whether experimental features are enabled.
containerd: The containerd version and Git commit ID used by Docker.runc: The runc version and Git commit ID used by Docker.docker-init: The docker-init version and Git commit ID used by Docker.
<
Docker Command Reference