How to find the kernel version of an image

Sometimes you might need to look up the kernel version of a past image. This is useful if you have a regression in a new kernel and want to find out what image has what kernel. Each container has an ostree.linux label that tells you what the version of the kernel in that image is. We use the skopeo tool to inspect it:

skopeo inspect docker://ghcr.io/ublue-os/bazzite:39-20240210 | grep ostree.linux

This returns:

"ostree.linux": "6.7.3-200.fc39.x86_64",
6 Likes