Can’t download php modules inside the docker container

I can’t download any php extensions inside my docker container, when trying
yum install php7.3-mysql it gives me error

“No package php7.3-zip available.”

And when trying with docker-php-ext-install it gives me

“bash: docker-php-ext-install: command not found”

The docker container was created from the centos official image, just pulled it and installed php7.3 successfully but not the extensions

Source: StackOverflow