Container wont start

was editing config file for mailgun and running to this error and container wont start
i had since edited file but seems not want to start urgent help needed

Error: Error parsing your configuration file: [/var/lib/ghost/config.production.json]: Unexpected token } in JSON at position 428

It looks like your config has a syntax error. Run it through something like https://jsonlint.com/

i know but how i edit if container wont start

You might have to recreate the container. If you’re using containers, your best bet is to pass configuration options via env vars

i manage to edit config file here and fixed ,
thanks for your input

root@lucas:/var/lib/docker/overlay2/d6e341298ac37fe341f7281054126c95be5db98e0e157163a381d65eb861f2ac/diff/var/lib/ghost/versions/3.17.1/core/server/config/env#

That config file won’t exist when you update your Ghost version. You’re making changes to the Ghost core in a container and not a volume

1 Like

i know just needed to restart , will check volumes as well