Host kernel and docker alpine kernel is not matching

Hi,

As per my understanding, docker container uses the host kernel but when I checked with my alpine container, the kernel version did not match. May I know the reason behind this. Is docker using any lightweight VM?

Using docker dektop (v 4.17.0) in Linux mint as host.

I am learning docker. So apologise in advance if this is a very silly question.

$ docker container run -it alpine uname -r
5.15.49-linuxkit
$ uname -r
5.15.0-67-generic

Are you fix it ???

Yes, it is for Docker Desktop. Docker Desktop always runs the backend in a utility vm, as such the host’s kernel means the kernel of the utility vm.

True if docker-ce is used.