How to update wp-config file in Docker

The Solution that finally worked was to turn down the containers using docker-compose down command. I was not detaching the containers, but I still need to turn them down. Once I did so, I then run the command docker volume ls to list all the volume and delete the one with WordPress data in it by docker volume rm <volume_name>.

For WordPress, since wp-config file cannot be changed after initial edit, I guess this is A solution but it’s not the only solution. I am running a relatively small blogging server and most of the data will always be on backup. Hence this up-down will not be that big of a deal, if I need to change any WordPress settings or update the wp-config file.

error code: 523