How does one edit a single text file in a container?

I’m new to docker, I need to edit a single config file for prometheus and cant figure out how to.

I’m running docker on windows. I just need to edit this config file prometheus.yml and cant find any way to do it. Most guides I see are for ubuntu etc. Is there no simple way to edit a simple text file?

Thanks so much, I’ve been pulling my hair out