1

I'm using a docker image and trying to see which packages are installed. Specifically which kernel packages.

Doing this command I get the following kernel packages

rpm -qa kernel*
kernel-devel-2.6.32-754.6.3.el6.i686
kernel-headers-2.6.32-754.17.1.el6.centos.plus.i686

but it's missing... how do I find verify that specific kernel is running.

kernel-2.6.32-754.3.5.el6.i686.rpm

From what I read the docker image uses the native OS kernel to execute commands. But I'm attempting to confirm that this is the kernel-2.6.32-754.3.5.el6.i686.rpm. the documentation states is running.

thanks

1
  • uname -r tells you the kernels idea of the kernel version.
    – icarus
    Commented Mar 10, 2020 at 4:02

1 Answer 1

5

A docker image doesn't have a Kernel, It uses the Kernel from the host machine that you are running Docker on. You can run this command inside your Docker container and from your CentOS host, It will show up the same result

uname -sr

There is a similar question on Super User

Ps:// By the way, you should upgrade your CentOS host to kernel 3.10+ as recommended here

1
  • yeah that's what I suspected. Also came across that thread but thought maybe I was missing something since they didn't show how they got there.. thanks
    – Lacer
    Commented Mar 10, 2020 at 17:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .