Is it possible to install Gitlab Docker and Runner inside Docker on same Server

I read in docs they do not advice to install Gitlab and runner on same machine due to memory allocation problem and admin security reason.

So If I install gitlab on one docker and runner on another docker instance. Would it still have the security risk of any freebie have access to both gitlab and runner? Or I might run into another problem of slow machine or docker run out of instance decided space?