How can I open a internal port in container?

Hello eveyone!

I want to build mariadb galera using these ports:

3306 (standard MariaDB port)
4444 (SST port)
4567 (Galera replication port)
4568 (IST port)

I just pull image from docker hub. And I don’t know to open internal port in container. Whether should I build Dockerfile containing ubuntu + mariadb to do it?