Host kernel and docker alpine kernel is not matching


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
$ uname -r

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.