查看docker镜像版本号
1、下载最新镜像
下载最新latest版本镜像:
docker pull mysql:latest
2、使用docker inspect命令
例如,对于MySQL镜像:
docker inspect mysql:latest | grep -i version
3、使用docker history命令
另一种方法是查看镜像的构建历史:
docker history mysql:latest
下载最新latest版本镜像:
docker pull mysql:latest
例如,对于MySQL镜像:
docker inspect mysql:latest | grep -i version
另一种方法是查看镜像的构建历史:
docker history mysql:latest