Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Hyperctl / Hyperd version #747

Open
opahopa opened this issue Sep 24, 2018 · 7 comments
Open

Hyperctl / Hyperd version #747

opahopa opened this issue Sep 24, 2018 · 7 comments

Comments

@opahopa
Copy link

opahopa commented Sep 24, 2018

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)

@jonaagenilsen
Copy link

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

@opahopa
Copy link
Author

opahopa commented Sep 24, 2018

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)

@gnawux
Copy link
Member

gnawux commented Sep 24, 2018

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
Copy link
Member

gnawux commented Sep 24, 2018

And checked with the code

# hyperctl version
The hyperctl version is 1.1.0

It's supported

@opahopa
Copy link
Author

opahopa commented Sep 24, 2018

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)

@gnawux
Copy link
Member

gnawux commented Sep 24, 2018

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
Copy link
Member

gnawux commented Sep 24, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants