我们如何在 运行 容器时查看特定图像的版本对于 golang 我们使用版本字段
How we can see the version of a particular image at the time of running the container as for golang we use version field
我们如何在运行安装容器时查看特定镜像的版本,对于 golang,我们使用版本字段。
这里是go版本go1.13 linux/amd64是一个版本但是有没有其他的镜像比如ubuntu,centos也有..还是只针对go语言???
go version go1.13 linux/amd64
此响应不是来自 docker pull 命令,而是来自您的 docker 运行 命令。
docker container run --rm golang go version
并且在 ubuntu 和 centos 的情况下,您有 tag
并且标签代表图像中的 OS 版本。
至于运行time like nodejs,是的,你可以运行相同的命令来获取版本。
docker run --rm node:alpine node --version
我们如何在运行安装容器时查看特定镜像的版本,对于 golang,我们使用版本字段。
这里是go版本go1.13 linux/amd64是一个版本但是有没有其他的镜像比如ubuntu,centos也有..还是只针对go语言???
go version go1.13 linux/amd64
此响应不是来自 docker pull 命令,而是来自您的 docker 运行 命令。
docker container run --rm golang go version
并且在 ubuntu 和 centos 的情况下,您有 tag
并且标签代表图像中的 OS 版本。
至于运行time like nodejs,是的,你可以运行相同的命令来获取版本。
docker run --rm node:alpine node --version