4-Docker命令之docker version

1.docker version介绍

docker version命令是用于查看docker容器的版本信息

2.docker version用法

docker version [参数]

[root@centos79 ~]# docker version --help

Usage:  docker version [OPTIONS]

Show the Docker version information

Options:
  -f, --format string   Format output using a custom template:
                        'json':             Print in JSON format
                        'TEMPLATE':         Print output using the given Go template.
                        Refer to https://docs.docker.com/go/formatting/ for more information about
                        formatting output with templates
[root@centos79 ~]# 

3.实例

3.1.查看docker的版本信息

命令:

docker version

[root@centos79 ~]# docker version
Client: Docker Engine - Community
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 

你可能感兴趣的:(docker,docker,容器)