Home>Article>Operation and Maintenance> How to check which version of docker is used
You can use the "docker version" command to check which version of docker is. This command is used to display the version information of docker, and you can specify the template file of the return value by setting the parameter to "-f", which is displayed in the result. The content of the "Version" item is the version number of docker.
The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.
Use the docker version command.
docker version: Display Docker version information.
Syntax
docker version [OPTIONS]
OPTIONS description:
-f: Specify the template file for the return value.
The example is as follows:
Display Docker version information.
$ docker version Client: Version: 1.8.2 API version: 1.20 Go version: go1.4.2 Git commit: 0a8c2e3 Built: Thu Sep 10 19:19:00 UTC 2015 OS/Arch: linux/amd64 Server: Version: 1.8.2 API version: 1.20 Go version: go1.4.2 Git commit: 0a8c2e3 Built: Thu Sep 10 19:19:00 UTC 2015 OS/Arch: linux/amd64
Recommended learning: "docker video tutorial"
The above is the detailed content of How to check which version of docker is used. For more information, please follow other related articles on the PHP Chinese website!