How to get access to php.ini file

Without having read the hole thread:

Sometimes when I deal with broken entrypoint-scripts or configuration files, I tend to copy the broken files from the container to the docker host, fix them and remount them as a volume to the container.

docker cp {containername/id}:/path/inside/the/container/file /hostpath/file