Setting WORDPRESS_CONFIG_EXTRA as an environment variable in docker does not result in lines added to wp-config.php.
Setting the WORDPRESS_CONFIG_EXTRA parameter should add lines to wp-config.php as described on https://hub.docker.com/_/wordpress/ and mentioned in this pull request (albeit with an older parameter name): https://github.com/docker-library/wordpress/pull/142
The docker-entrypoint.sh file only injects that value if the wp-config.php file does not already exist, has a recent update to wordpress started deploying that file?
Sorry, my fault. I was using persistent storage and wp-config.php was remaining from an older container.
Most helpful comment
Sorry, my fault. I was using persistent storage and wp-config.php was remaining from an older container.