Use protoversion for containerd version
Signed-off-by: Peter Edge <peter.edge@gmail.com>
This commit is contained in:
parent
1d63236c27
commit
d2e319523d
5 changed files with 48 additions and 4 deletions
|
@ -14,7 +14,7 @@ const Usage = `High performance container daemon cli`
|
|||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "ctr"
|
||||
app.Version = containerd.Version
|
||||
app.Version = containerd.Version.VersionString()
|
||||
app.Usage = Usage
|
||||
app.Authors = []cli.Author{
|
||||
{
|
||||
|
@ -37,6 +37,7 @@ func main() {
|
|||
CheckpointCommand,
|
||||
ContainersCommand,
|
||||
EventsCommand,
|
||||
VersionCommand,
|
||||
}
|
||||
app.Before = func(context *cli.Context) error {
|
||||
if context.GlobalBool("debug") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue