Trouble rebuilding database from Docker

Hello,

I don’t have much experience with running a docker image, please forgive me.

Nextcloud was installed through some software (which utilizes Docker). I am trying to rebuild the database from files that I have imported via rsync. I understand I must run occ, however doing so throws out an error about not having php installed. I assume I must run occ via the docker image itself. Of which I have no clue. Any suggestions?

Can it be rebuilt via the web/admin panel?

Thanks,
Kevin