> I don't know why they didn't allow us to use any docker image we want
Can you imagine allowing anyone on the internet to run an arbitrary container on your server for free?
Can you imagine allowing anyone on the internet to run an arbitrary container on your server for free?
I built an old-style Docker container (i.e., one that runs code like "apt-get install foo") on Github Actions successfully, so I assume Docker works fine. I haven't tried getting root on a build worker, but I imagine they mitigate that in some way. (Perhaps by having a pool of VMs and blowing it up after your build is done.)
I think what the OP is talking about is CI systems whose pipelines are declared by a series of "run this command in this container" instructions. Github Actions doesn't work that way, but you can still run containers.