How to reboot Linux by new img in Docker?

I compiled a new linux kernel in ubuntu, and I want to reboot by new that new img I have comipled.
I just want to known how Docker boot a OS and what’s the solution to my problem?