1.docker version介绍
docker version命令是用于查看docker容器的版本信息
2.docker version用法
docker version [参数]
[root@centos79 ~]# docker version --helpUsage: docker version [OPTIONS]Show the Docker version informationOptions:-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 aboutformatting output with templates
[root@centos79 ~]#
3.实例
3.1.查看docker的版本信息
命令:
docker version
[root@centos79 ~]# docker version
Client: Docker Engine - CommunityVersion: 24.0.7API version: 1.43Go version: go1.20.10Git commit: afdd53bBuilt: Thu Oct 26