如何查看cAdvisor版本


看了下cAdvisor官方文档,cAdvisor提供的api格式一般是 http://<hostname>:<port>/api/<version>/<request> ,那么问题来了,怎么查看cAdvisor的版本。

docker images

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
google/cadvisor latest 089623f9fe9e 4 months ago 47.79 MB

按照这个提示,应该是最新的v1.3

docker pull google/cadvisor

latest: Pulling from google/cadvisor
9b7301678506: Already exists
06984fada629: Already exists
cbd9326b4af3: Already exists
10474a88441d: Already exists
b9d5d26743db: Already exists
88fbad6bf4a8: Already exists
089623f9fe9e: Already exists
Digest: sha256:4e2516265ac64dec761df48382d0c1061e407bd460d3dab3ff6f99031f442d06
Status: Image is up to date for google/cadvisor:latest

看下面的信息,又感觉是v.19,不知道是哪个版本,恳请大神指点。docker/cadvisor初学者
INFO POST /v1.19/containers/create

INFO POST /v1.19/containers/4c9909392a0013e0c6effce7e54cec207c49432541116bb943612c5d82ccaa33/attach?stderr=1&stdin=1&stdout=1&stream=1
INFO POST /v1.19/containers/4c9909392a0013e0c6effce7e54cec207c49432541116bb943612c5d82ccaa33/start
INFO POST /v1.19/containers/4c9909392a0013e0c6effce7e54cec207c49432541116bb943612c5d82ccaa33/resize?h=23&w=132
INFO GET /v1.19/images/json

INFO GET /v1.19/images/json

INFO POST /v1.19/images/create?fromImage=google%2Fcadvisor%3Alatest
已邀请:

wisen

赞同来自:


跑到容器里执行如下命令:

&amp;amp;lt;pre&amp;amp;gt;

./cadvisor -version

cAdvisor version v0.24.1 (ae6934c)
&amp;amp;lt;/pre&amp;amp;gt;

要回复问题请先登录注册