I was able to find a temporary workaround by deleting the config file config/config.json
in the docker container. However, I have to do this everytime I stop the docker container.
I found a post having the same issue 5 years ago ([SOLVED] Mattermost suddenly crashed and after reboot Web Container doesn't response - #12 by rikrdo89 , still unsolved)
Hopefully someone can find a long term solution to this issue. I don’t know what type of configuration I am losing by erasing the config file every time, if it is nothing important, then the conf file should be made a tmp file that is removed when stopping the container.