Home >Operation and Maintenance >Docker >How to check which version of docker is used

How to check which version of docker is used

WBOY
WBOYOriginal
2022-04-14 18:43:3219343browse

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.

How to check which version of docker is used

The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.

How to check which version of docker is used

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn