Db upgrade if using docker image?

how do you do the db upgrade script if running the via the docker image? Normally I just pull the latest docker image. config dir lives on my filesystem per the instructions.