container show prints kernel version

This commit is contained in:
Christian Goll
2022-05-03 10:23:19 +02:00
parent c29848171e
commit 1a61b53bb2

View File

@@ -18,6 +18,11 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
} else {
fmt.Printf("Name: %s\n", containerName)
fmt.Printf("Rootfs: %s\n", container.RootFsDir(containerName))
kernelVersion := container.KernelVersion(containerName)
if kernelVersion != "" {
kernelVersion = "not found"
fmt.Printf("Kernelversion: %s\n", kernelVersion)
}
nodeDB, _ := node.New()
nodes, _ := nodeDB.FindAllNodes()