hyperd icon indicating copy to clipboard operation
hyperd copied to clipboard

Hyperctl / Hyperd version

Open opahopa opened this issue 7 years ago • 7 comments

Hi, is there a command argument to check hyperd/hyperctl version? not in the commands / arguments here https://docs.hypercontainer.io/reference/index.html (and not in hyperctl / hyperd --help)

opahopa avatar Sep 24 '18 01:09 opahopa

Not delicate.. but

yum list installed | egrep "hyper-|hyperstart"
hyper-container.x86_64               1.1.0-1.el7                       installed
hyperstart.x86_64                    1.1.0-1.el7                       installed

jonaagenilsen avatar Sep 24 '18 06:09 jonaagenilsen

yeah know that, thanks. wandering about existing of any kind of --version flag in hyperctl/hyperd, since running yum list installed | egrep "hyper-|hyperstart" certainly must take more execution time. (in my use case it is relatively important)

opahopa avatar Sep 24 '18 14:09 opahopa

you may find the version at the beginning of the logs (by default /var/log/hyper/hyperd.INFO):

I0924 10:30:44.809559   20376 hyperd.go:189] Hyper daemon: 1.1.0

gnawux avatar Sep 24 '18 14:09 gnawux

And checked with the code

# hyperctl version
The hyperctl version is 1.1.0

It's supported

gnawux avatar Sep 24 '18 14:09 gnawux

And checked with the code

# hyperctl version
The hyperctl version is 1.1.0

It's supported

haha thanks! tried different options but not without -. (since it's not in help / docs)

opahopa avatar Sep 24 '18 14:09 opahopa

One more thing, you may query the server with API

# echo -e "GET /version HTTP/1.0\r\n" | nc -U /var/run/hyper.sock
HTTP/1.0 200 OK
Content-Type: application/json
Server: Docker/library-import (linux)
Date: Mon, 24 Sep 2018 14:40:27 GMT
Content-Length: 31

{"ID":20376,"Version":"1.1.0"}

gnawux avatar Sep 24 '18 14:09 gnawux

Both the client side and server side. I think it should be documented

gnawux avatar Sep 24 '18 14:09 gnawux