From a8b97c79b5e19c394a1c6d17135ca57e8e142bbf Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Wed, 21 Sep 2016 03:39:48 -0400 Subject: [PATCH] Display correct runtime-spec version Instead of using a constant as the runtime-spec version, user `Version` in the package. Signed-off-by: Lei Jitang --- image/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/config.go b/image/config.go index 14e41e2..e9545af 100644 --- a/image/config.go +++ b/image/config.go @@ -70,7 +70,7 @@ func (c *config) runtimeSpec(rootfs string) (*specs.Spec, error) { } var s specs.Spec - s.Version = "0.5.0" + s.Version = specs.Version // we should at least apply the default spec, otherwise this is totally useless s.Process.Terminal = true s.Root.Path = rootfs