命令格式:
docker image inspect (docker image名称):latest|grep -i version
实例:
[root@docker ~]# docker image inspect zabbix/zabbix-server-mysql:latest|grep -i version
"ZBX_VERSION=5.0.1",
"org.opencontainers.image.version": "5.0.1"
"DockerVersion": "19.03.8",
"ZBX_VERSION=5.0.1",
"org.opencontainers.image.version": "5.0.1"
可以获取到zabbix-server的镜像版本为5.0.1