Direct migration from 8.0.7 CE on Rocky Linux to 9.0.2 Docker - possible?

Hi,

my CE installation is on Rocky Linux (centOS) and I want to migrate to the docker version now. Is it possible to do a direct migration? Or do I need to migrate to a normal 8.0.7 installation on a supported distribution and then upgrade to 9.02 and only then migrate into the docker version…

I hope you understand what I mean xD

Thanks in advance.