CentOS image on Ubuntu host

Hi,
I wish to understand how CentOS based docker image can be built on UbuntuOS as host.

Ubuntu OS has one kernel, on top of that CentOS can be built?
I wish to understand how its practically possible?